Function at 0x436d57
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Move file
Parse pe header

Disassembly:
push 0x5d8
mov eax, 0x45c51f
call fcn.004572ce
mov dword [ebp - 0x510], edx
mov edi, ecx
mov dword [ebp - 0x520], edi
push edi
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x524], edi
call fcn.00413f00
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x436dd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x436e09
movzx esi, si
or esi, 0x80070000
jmp 0x436e07
lea eax, [ebp - 0x424]
push eax
push ebx
push 0x40b5a8
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x436dbe
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x43c]
call fcn.00413e3f
mov esi, ebx
test esi, esi
jns 0x436e79
push esi
push edi
push 0xfab
push 0x464120
call fcn.0041105c
add esp, 0x10
push 8
pop ebx
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x436e36
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436e5c
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x436e55
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x43c]
call fcn.00410a1a
lea ecx, [ebp - 0x474]
call fcn.00410a1a
mov eax, esi
jmp 0x437542
push 8
pop ebx
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x436e90
mov eax, dword [ebp - 0x43c]
xor esi, esi
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x436ecd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x436eb4
movzx esi, si
or esi, 0x80070000
push esi
push edi
push 0xfab
push 0x464120
call fcn.0041105c
add esp, 0x10
jmp 0x436e22
push ecx
lea ecx, [ebp - 0x5e4]
call fcn.004376ed
push 2
pop eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x5e4]
push 6
pop edx
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x5d8]
and ecx, 0x17
mov dword [ebp + eax - 0x5d4], edx
mov dword [ebp + eax - 0x5d8], ecx
and ecx, edx
je 0x436f0f
push ecx
xor cl, cl
call fcn.004165a5
mov byte [ebp - 4], 3
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x436f27
mov eax, dword [ebp - 0x43c]
push ecx
push 0x23
push eax
lea ecx, [ebp - 0x5cc]
call fcn.00438b16
test eax, eax
lea ecx, [ebp - 0x5e4]
mov eax, dword [ebp - 0x5e4]
push esi
mov eax, dword [eax + 4]
jne 0x436f55
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
push eax
jmp 0x436f58
add ecx, eax
push esi
call fcn.00438cb2
push 0x40
lea eax, [ebp - 0x508]
push esi
push eax
call fcn.004438e0
add esp, 0xc
lea edx, [ebp - 0x508]
lea ecx, [ebp - 0x5e4]
call fcn.00438eea
mov eax, 0x5a4d
cmp word [ebp - 0x508], ax
jne 0x437005
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.004438e0
mov eax, dword [ebp - 0x4cc]
sub esp, 0xc
mov ecx, esp
cdq
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x5d4]
call fcn.00438083
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x5e4]
call fcn.00438f00
cmp dword [ebp - 0x10c], 0x4550
jne 0x437005
mov eax, 0x10b
cmp word [ebp - 0xf4], ax
jne 0x437005
xor eax, eax
inc eax
cmp word [ebp - 0x106], ax
je 0x437087
push edi
push 0xfac
push 0x464120
call fcn.0041105c
add esp, 0xc
lea ecx, [ebp - 0x56c]
call fcn.004376bc
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x56c], 0x402724
call fcn.004165f6
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x43704c
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437072
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x43706b
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x43c]
call fcn.00410a1a
mov esi, 0x80070057
jmp 0x436e67
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x49c]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x49c]
lea ecx, [ebp - 0x5e4]
call fcn.00438f19
mov esi, dword [ebp - 0xd4]
lea edi, [ebp - 0x4c8]
mov eax, dword [ebp - 0x48c]
dec eax
add eax, esi
cdq
idiv esi
push 0xa
imul eax, esi
mov esi, dword [ebp - 0x24]
pop ecx
push 0x40b5b0
push ebx
add esi, eax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x84], esi
push eax
call fcn.004472cf
mov eax, dword [ebp - 0x48c]
sub esp, 0xc
add eax, dword [ebp - 0x488]
mov ecx, esp
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x4bc], esi
mov dword [ebp - 0x4a4], 0x40000040
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x5e4]
call fcn.004382fc
xor eax, eax
lea edi, [ebp - 0x44c]
stosd dword es:[edi], eax
lea edx, [ebp - 0x44c]
push 4
xor esi, esi
lea ecx, [ebp - 0x5e4]
inc esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x444], ax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x518], edi
mov dword [ebp - 0x514], edi
mov word [ebp - 0x442], ax
mov word [ebp - 0x43e], si
call fcn.00438f2f
push 0x10
pop eax
lea edx, [ebp - 0x518]
mov word [ebp - 0x518], ax
lea ecx, [ebp - 0x5e4]
mov dword [ebp - 0x514], 0x80000018
call fcn.00438f48
lea edx, [ebp - 0x44c]
lea ecx, [ebp - 0x5e4]
call fcn.00438f2f
lea edx, [ebp - 0x518]
mov word [ebp - 0x518], si
lea ecx, [ebp - 0x5e4]
mov dword [ebp - 0x514], 0x80000030
call fcn.00438f48
lea edx, [ebp - 0x44c]
lea ecx, [ebp - 0x5e4]
call fcn.00438f2f
mov eax, 0x409
mov dword [ebp - 0x514], 0x48
lea edx, [ebp - 0x518]
mov word [ebp - 0x518], ax
lea ecx, [ebp - 0x5e4]
call fcn.00438f48
mov eax, dword [ebp - 0x4bc]
lea edx, [ebp - 0x45c]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x5e4]
add eax, 0x58
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], 0x4e4
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], esi
call fcn.00438f2f
push edi
push esi
push dword [ebp - 0x510]
lea ecx, [ebp - 0x5d4]
call fcn.0043814b
mov ecx, dword [ebp - 0xd0]
add esi, 0x58
mov dword [ebp - 0x4c0], esi
mov edi, esi
lea eax, [ecx - 1]
add eax, esi
cdq
idiv ecx
imul eax, ecx
mov dword [ebp - 0x4b8], eax
cmp edi, eax
jae 0x43729c
xor eax, eax
mov byte [ebp - 0x509], 0
push 0
inc eax
lea ecx, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x509]
push eax
call fcn.0043814b
mov eax, dword [ebp - 0x4b8]
inc esi
inc edi
jmp 0x43726f
mov ecx, dword [ebp - 0x4c0]
mov dword [ebp - 0xec], eax
dec eax
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0xd4]
add eax, ecx
cdq
idiv ecx
push 2
imul eax, ecx
pop esi
sub esp, 0x18
mov word [ebp - 0x106], si
mov ecx, esp
add dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x4cc]
cdq
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x5d4]
call fcn.00438083
lea edx, [ebp - 0x10c]
lea ecx, [ebp - 0x5e4]
call fcn.00438f61
push ecx
xor edi, edi
lea ecx, [ebp - 0x5e4]
push edi
push 0x28
call fcn.00438242
lea edx, [ebp - 0x4c8]
lea ecx, [ebp - 0x5e4]
call fcn.00438f7d
lea ecx, [ebp - 0x5cc]
call fcn.00438ad3
test eax, eax
jne 0x437353
mov eax, dword [ebp - 0x5e4]
lea ecx, [ebp - 0x5e4]
push edi
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, esi
push eax
call fcn.00438cb2
mov dword [ebp - 4], esi
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x43736a
mov eax, dword [ebp - 0x43c]
mov esi, dword [ebp - 0x520]
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43740c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x437397
movzx edi, di
or edi, 0x80070000
push edi
push esi
push 0xfab
push 0x464120
call fcn.0041105c
add esp, 0x10
lea ecx, [ebp - 0x56c]
call fcn.004376bc
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x56c], 0x402724
call fcn.004165f6
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x4373df
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437405
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x4373fe
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, edi
jmp 0x436e5c
lea ecx, [ebp - 0x56c]
call fcn.004376bc
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x56c], 0x402724
call fcn.004165f6
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x437440
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437466
lea eax, [ebp - 0x43c]
cmp dword [ebp - 0x428], ebx
jb 0x43745f
mov eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x43c]
call fcn.00410a1a
lea ecx, [ebp - 0x474]
call fcn.00410a1a
xor eax, eax
jmp 0x437542
call fcn.0045721b
ret 4