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

Disassembly:
push 0xffffffffffffffff
push 0x43c541
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x48f710]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x128], eax
call fcn.00433b63
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.00402c40
add esp, 0xc
push eax
mov ecx, 0x490b68
mov byte [esp + 0x138], 1
call fcn.00402b20
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 0x4034ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x490b68]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call ebp
push 0x43eff0
lea ecx, [esp + 0x14]
push 0x490b68
push ecx
call fcn.00402c40
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 0x403548
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.00402c40
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 0x403585
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.00402c40
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 0x4035bc
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.00433dfb
push 8
push 0x490b80
lea ecx, [esp + 0x20]
call fcn.00433876
cmp dword [esi + 0x5b8], ebx
je 0x4036c0
mov eax, dword [esi + 0x594]
mov ebp, dword [eax + 8]
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.00433a5b
cmp edx, edi
jb 0x4036c0
ja 0x403610
cmp eax, ebp
jb 0x4036c0
push ebx
push edi
push ebp
lea ecx, [esp + 0x24]
call fcn.00433901
mov edi, dword [esi + 0x594]
lea ecx, [esp + 0x18]
call fcn.00433a5b
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 8]
xor edi, edi
add ecx, ebp
cmp edx, edi
jb 0x40364e
ja 0x40363f
cmp eax, ecx
jb 0x40364e
mov ecx, dword [esi + 0x594]
mov edi, dword [ecx + 0xc]
mov dword [esp + 0x14], ebx
jmp 0x40366c
lea ecx, [esp + 0x18]
call fcn.00433a5b
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.00432cca
add esp, 4
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.00433876
lea ecx, [esp + 0x18]
call fcn.00433b01
mov ecx, dword [0x490b68]
push ebx
push 0x1001
push ecx
lea ecx, [esp + 0x24]
call fcn.00433dfb
push edi
push esi
lea ecx, [esp + 0x20]
call fcn.004338b6
push esi
call fcn.00432ccf
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00433b01
jmp 0x4036df
lea ecx, [esp + 0x18]
call fcn.00433b01
mov edx, dword [0x490b68]
mov esi, dword [esi + 0x584]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [0x490b68]
mov edi, dword [eax - 4]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, edi
or edx, ecx
pop ebp
jge 0x403706
push ebx
mov ecx, 0x490b68
call fcn.00401540
mov eax, dword [0x490b68]
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 0x403710
lea eax, [esp + 0x24]
push eax
call fcn.0040e830
push 0x43eff0
lea ecx, [esp + 0x14]
push 0x490b68
push ecx
call fcn.00402c40
add esp, 0x10
mov edx, dword [0x490b68]
mov eax, dword [eax]
push edx
push eax
mov byte [esp + 0x13c], 2
call fcn.00433851
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 0x40377a
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.00433ba2
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.0041d27e
add esp, 0x12c
ret