Function at 0x439a8d
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46af1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x10]
call fcn.0040dfd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040dfd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x35c], 0
jne 0x439c78
mov dword [ebp - 0x1c], 0
jmp 0x439aef
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 8
jge 0x439c73
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + edx*4 + 0x504]
call fcn.0040e100
test eax, eax
je 0x439b11
jmp 0x439ae6
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
lea eax, [edx + ecx*4 + 0x504]
push eax
push 0x483ff4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004607af
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00460749
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00460653
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0046051a
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
mov eax, dword [str.hexfile]
push eax
push 0x483ff8
lea ecx, [ebp - 0x10]
push ecx
call fcn.0045b306
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 0x484000
mov eax, dword [ebp - 0x40]
add eax, 0x570
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004607af
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00460749
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x10]
call fcn.00460653
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0046051a
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x439c45
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
and ecx, 1
test ecx, ecx
je 0x439c45
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
push edx
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x439ae6
jmp 0x439e0c
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x35c], 1
jne 0x439e0c
mov ecx, dword [ebp - 0x40]
add ecx, 0x524
call fcn.0040e100
test eax, eax
je 0x439cba
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046051a
jmp 0x439e27
mov ecx, dword [ebp - 0x40]
add ecx, 0x524
push ecx
push 0x484004
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004607af
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00460749
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x14]
call fcn.00460653
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0046051a
mov eax, dword [str.binfile.bin]
push eax
push 0x484008
lea ecx, [ebp - 0x10]
push ecx
call fcn.0045b306
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0x48400c
mov eax, dword [ebp - 0x40]
add eax, 0x570
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004607af
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00460749
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x10]
call fcn.00460653
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0046051a
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x439de3
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
and ecx, 1
test ecx, ecx
je 0x439de3
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
push edx
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046051a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4