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

Disassembly:
push 0xffffffffffffffff
push 0x43c6b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x494080]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], eax
call fcn.00433cb3
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.00402c60
add esp, 0xc
push eax
mov ecx, 0x4954c8
mov byte [esp + 0x138], 1
call fcn.00402b40
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 0x40351f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x4954c8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
push 0x440018
lea ecx, [esp + 0x14]
push 0x4954c8
push ecx
call fcn.00402c60
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 0x403568
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.00402c60
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 0x4035a5
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.00402c60
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 0x4035dc
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.00433f4b
push 8
push 0x4954e0
lea ecx, [esp + 0x20]
call fcn.004339c6
cmp dword [esi + 0x5b8], ebx
je 0x4036e0
mov eax, dword [esi + 0x594]
mov ebp, dword [eax + 8]
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.00433bab
cmp edx, edi
jb 0x4036e0
ja 0x403630
cmp eax, ebp
jb 0x4036e0
push ebx
push edi
push ebp
lea ecx, [esp + 0x24]
call fcn.00433a51
mov edi, dword [esi + 0x594]
lea ecx, [esp + 0x18]
call fcn.00433bab
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
xor edi, edi
add ecx, ebp
cmp edx, edi
jb 0x40366e
ja 0x40365f
cmp eax, ecx
jb 0x40366e
mov ecx, dword [esi + 0x594]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x14], ebx
jmp 0x40368c
lea ecx, [esp + 0x18]
call fcn.00433bab
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.00432e1a
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.004339c6
lea ecx, [esp + 0x18]
call fcn.00433c51
mov ecx, dword [0x4954c8]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.00433f4b
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.00433a06
push esi
call fcn.00432e1f
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00433c51
jmp 0x4036ff
lea ecx, [esp + 0x18]
call fcn.00433c51
mov edx, dword [0x4954c8]
mov esi, dword [esi + 0x584]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [0x4954c8]
mov edi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, edi
or edx, ecx
pop ebp
jge 0x403726
push ebx
mov ecx, 0x4954c8
call fcn.00401540
mov eax, dword [0x4954c8]
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 0x403730
lea eax, [esp + 0x24]
push eax
call fcn.0040e960
push 0x440018
lea ecx, [esp + 0x14]
push 0x4954c8
push ecx
call fcn.00402c60
add esp, 0x10
mov edx, dword [0x4954c8]
mov eax, dword [eax]
push edx
push eax
mov byte [esp + 0x13c], 2
call fcn.004339a1
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 0x40379a
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.00433cf2
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.0041d3ce
add esp, 0x12c
ret