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

Disassembly:
push 0xffffffffffffffff
push 0x43b641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x459c10]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], eax
call fcn.00432ad3
push str._res_tmp_res_tmp_downloadres.tmp
lea edi, [esi + 0x5f0]
lea eax, [esp + 0x10]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x140], ebx
call fcn.00402ee0
add esp, 0xc
push eax
mov ecx, 0x45b088
mov byte [esp + 0x138], 1
call fcn.00402da0
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 0x40379f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x45b088]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
push 0x43f194
lea ecx, [esp + 0x14]
push 0x45b088
push ecx
call fcn.00402ee0
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 0x4037e8
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.00402ee0
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 0x403825
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.00402ee0
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 0x40385c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x5d8]
push ebx
push ebx
push eax
lea ecx, [esp + 0x24]
call fcn.00432d6b
push 8
push 0x45b0a0
lea ecx, [esp + 0x20]
call fcn.004327e6
cmp dword [esi + 0x60c], ebx
je 0x403960
mov eax, dword [esi + 0x5e8]
mov ebp, dword [eax + 8]
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.004329cb
cmp edx, edi
jb 0x403960
ja 0x4038b0
cmp eax, ebp
jb 0x403960
push ebx
push edi
push ebp
lea ecx, [esp + 0x24]
call fcn.00432871
mov edi, dword [esi + 0x5e8]
lea ecx, [esp + 0x18]
call fcn.004329cb
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
xor edi, edi
add ecx, ebp
cmp edx, edi
jb 0x4038ee
ja 0x4038df
cmp eax, ecx
jb 0x4038ee
mov ecx, dword [esi + 0x5e8]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x14], ebx
jmp 0x40390c
lea ecx, [esp + 0x18]
call fcn.004329cb
mov edi, eax
mov eax, dword [esi + 0x5e8]
mov ecx, dword [eax + 8]
xor eax, eax
sub edi, ecx
sbb edx, eax
mov dword [esp + 0x14], edx
push edi
call fcn.00431c37
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.004327e6
lea ecx, [esp + 0x18]
call fcn.00432a71
mov ecx, dword [0x45b088]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.00432d6b
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.00432826
push esi
call fcn.00431c3c
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00432a71
jmp 0x40397f
lea ecx, [esp + 0x18]
call fcn.00432a71
mov edx, dword [0x45b088]
mov esi, dword [esi + 0x5d8]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [0x45b088]
mov edi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, edi
or edx, ecx
pop ebp
jge 0x4039a6
push ebx
mov ecx, 0x45b088
call fcn.00401630
mov eax, dword [0x45b088]
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 0x4039b0
lea eax, [esp + 0x24]
push eax
call fcn.0040d7a0
push 0x43f194
lea ecx, [esp + 0x14]
push 0x45b088
push ecx
call fcn.00402ee0
add esp, 0x10
mov edx, dword [0x45b088]
mov eax, dword [eax]
push edx
push eax
mov byte [esp + 0x13c], 2
call fcn.004327c1
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 0x403a1a
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.00432b12
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.0041c5be
add esp, 0x12c
ret