Function at 0x100120ec
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x20
mov eax, 0x1004142b
call fcn.10021ea5
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.CUploadFileCmd::Execute__:_upload_file_param__s.
call fcn.10003e3a
pop ecx
pop ecx
push 0x20
mov ecx, ebx
call fcn.10002215
mov edi, 0x100581b4
push edi
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.100023ad
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x10]
call fcn.100023ad
push edi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.100023ad
push edi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100023ad
mov byte [ebp - 4], 3
cmp esi, 0xffffffff
jne 0x10012160
push ebx
lea ecx, [ebp - 0x10]
call fcn.100023d5
jmp 0x100121c2
lea eax, [ebp - 0x1c]
lea edx, [esi + 1]
push eax
mov ecx, ebx
call fcn.100042f8
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.100023d5
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10002c37
lea ebx, [ebp - 0x18]
call fcn.1000fd6b
mov ebx, eax
call fcn.1000fdb9
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 8]
push eax
call fcn.10002289
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.100023d5
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10002c37
lea ebx, [ebp - 0x10]
call fcn.1000fd6b
mov ebx, eax
call fcn.1000fdb9
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str..tmp
call fcn.100021a3
lea ecx, [ebp - 0x10]
lea ebx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.10001c9b
mov byte [ebp - 4], 7
push eax
lea edi, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.10001b47
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.100023d5
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10002c37
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10002c37
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x100122f5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx - 0xc]
lea ecx, [eax - 1]
mov dword [ebp + 8], 0xc
cmp ecx, ebx
jl 0x100122eb
cmp ecx, eax
jg 0x100122eb
cmp word [edx + ecx*2], 0x5c
je 0x10012278
mov esi, 0x1004b5ac
push esi
call fcn.10002867
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1000fa64
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.100023d5
mov esi, 0x1004e2c4
push esi
call fcn.10002867
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1000fa64
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x10012470
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.10002687
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xa
cmp dword [ebp + 0xc], ebx
jne 0x100122d1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100023d5
mov esi, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x14]
push esi
call fcn.10038530
add esp, 0xc
cmp eax, ebx
je 0x10012339
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1001235b
push 0x80070057
call fcn.10002c51
push dword [ebp - 0x10]
mov dword [ebp + 8], 0xa
call edi
test eax, eax
jne 0x1001229a
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10002c37
or eax, 0xffffffff
jmp 0x1001249e
cmp dword [ebp + 0xc], ebx
jne 0x1001235b
push 1
push dword [ebp - 0x14]
mov dword [ebp + 8], 0xd
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1001235b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x10012459
push 0x5c
push esi
call fcn.1001ef2c
pop ecx
pop ecx
cmp eax, ebx
jne 0x1001237b
or ecx, 0xffffffff
jmp 0x10012381
sub eax, esi
sar eax, 1
mov ecx, eax
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x2c]
push ecx
dec eax
lea ecx, [ebp - 0x1c]
call fcn.1000223a
mov byte [ebp - 4], 0xb
push 0x5c
push dword [ebp - 0x10]
call fcn.1001ef2c
pop ecx
pop ecx
cmp eax, ebx
jne 0x100123ac
or eax, 0xffffffff
jmp 0x100123b1
sub eax, dword [ebp - 0x10]
sar eax, 1
inc eax
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002289
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.100023d5
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.10002c37
mov edi, dword [ebp - 0x2c]
push dword [edi - 0xc]
lea ecx, [ebp - 0x10]
push edi
call fcn.1000fa64
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
cmp dword [eax - 0xc], ebx
jne 0x1001240a
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1000fa0b
mov eax, dword [ebp - 0x18]
movzx ecx, word [0x1005bb58]
mov esi, dword [esi + 8]
push ecx
push ecx
add eax, 0xfffffff0
cmp dword [ebp + 0xc], ebx
mov dword [ebp + 0xc], esp
mov ebx, esp
push eax
je 0x1001242f
call fcn.10002687
pop ecx
lea ecx, [ebp - 0x20]
jmp 0x10012438
call fcn.10002687
pop ecx
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
add eax, 0x10
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
lea ecx, [edi - 0x10]
call fcn.10002c37
mov esi, dword [ebp - 0x1c]
jmp 0x10012468
push dword [ebp - 0x10]
push 0x1004e2c8
call fcn.10003e3a
pop ecx
pop ecx
lea ecx, [esi - 0x10]
call fcn.10002c37
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002c37
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10002c37
xor eax, eax
call fcn.10021f44
ret 8