Function at 0x403450
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43c161
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x48ecf0]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], eax
call fcn.00433773
push str._res_tmp_res_tmp_downloadres.tmp
lea edi, [esi + 0x59c]
lea eax, [esp + 0x10]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x140], ebx
call fcn.00402c20
add esp, 0xc
push eax
mov ecx, 0x490148
mov byte [esp + 0x138], 1
call fcn.00402b00
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x490148]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
push 0x43efd0
lea ecx, [esp + 0x14]
push 0x490148
push ecx
call fcn.00402c20
mov eax, dword [eax]
add esp, 0xc
push eax
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str._res_tmp_
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00402c20
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
push ebx
push eax
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str._res_tmp_res_tmp_
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00402c20
mov eax, dword [eax]
add esp, 0xc
push ebx
push eax
call ebp
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40359c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x584]
push ebx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00433a0b
push 8
push 0x490160
lea ecx, [esp + 0x20]
call fcn.00433486
cmp dword [esi + 0x5b8], ebx
je 0x4036a0
mov eax, dword [esi + 0x594]
mov ebp, dword [eax + 8]
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.0043366b
cmp edx, edi
jb 0x4036a0
ja 0x4035f0
cmp eax, ebp
jb 0x4036a0
push ebx
push edi
push ebp
lea ecx, [esp + 0x24]
call fcn.00433511
mov edi, dword [esi + 0x594]
lea ecx, [esp + 0x18]
call fcn.0043366b
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
xor edi, edi
add ecx, ebp
cmp edx, edi
jb 0x40362e
ja 0x40361f
cmp eax, ecx
jb 0x40362e
mov ecx, dword [esi + 0x594]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x14], ebx
jmp 0x40364c
lea ecx, [esp + 0x18]
call fcn.0043366b
mov edi, eax
mov eax, dword [esi + 0x594]
mov ecx, dword [eax + 8]
xor eax, eax
sub edi, ecx
sbb edx, eax
mov dword [esp + 0x14], edx
push edi
call fcn.004328da
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.00433486
lea ecx, [esp + 0x18]
call fcn.00433711
mov ecx, dword [0x490148]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.00433a0b
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.004334c6
push esi
call fcn.004328df
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00433711
jmp 0x4036bf
lea ecx, [esp + 0x18]
call fcn.00433711
mov edx, dword [0x490148]
mov esi, dword [esi + 0x584]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [0x490148]
mov edi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, edi
or edx, ecx
pop ebp
jge 0x4036e6
push ebx
mov ecx, 0x490148
call fcn.00401540
mov eax, dword [0x490148]
lea edx, [esp + 0x24]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4036f0
lea eax, [esp + 0x24]
push eax
call fcn.0040e440
push 0x43efd0
lea ecx, [esp + 0x14]
push 0x490148
push ecx
call fcn.00402c20
add esp, 0x10
mov edx, dword [0x490148]
mov eax, dword [eax]
push edx
push eax
mov byte [esp + 0x13c], 2
call fcn.00433461
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x40375a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 8]
mov dword [esp + 0x128], 0xffffffff
call fcn.004337b2
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.0041ce8e
add esp, 0x12c
ret