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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
call fcn.0040dfd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040dfd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 8
jg 0x4392da
cmp dword [ebp + 8], 0
jne 0x4392fa
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046051a
jmp 0x439589
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
sub ecx, 1
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], 8
ja case.default.0x439316
mov edx, dword [ebp - 0x28]
jmp dword [edx*4 + 0x439599]
mov eax, dword [ebp - 0x24]
add eax, 0x4e0
mov dword [ebp - 0x14], eax
jmp 0x4393be
mov ecx, dword [ebp - 0x24]
add ecx, 0x4e4
mov dword [ebp - 0x14], ecx
jmp 0x4393be
mov edx, dword [ebp - 0x24]
add edx, 0x4e8
mov dword [ebp - 0x14], edx
jmp 0x4393be
mov eax, dword [ebp - 0x24]
add eax, 0x4ec
mov dword [ebp - 0x14], eax
jmp 0x4393be
mov ecx, dword [ebp - 0x24]
add ecx, 0x4f0
mov dword [ebp - 0x14], ecx
jmp 0x4393be
mov edx, dword [ebp - 0x24]
add edx, 0x4f4
mov dword [ebp - 0x14], edx
jmp 0x4393be
mov eax, dword [ebp - 0x24]
add eax, 0x4f8
mov dword [ebp - 0x14], eax
jmp 0x4393be
mov ecx, dword [ebp - 0x24]
add ecx, 0x4fc
mov dword [ebp - 0x14], ecx
jmp 0x4393be
mov edx, dword [ebp - 0x24]
add edx, 0x500
mov dword [ebp - 0x14], edx
jmp 0x4393be
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046051a
jmp 0x439589
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x35c], 0
jne 0x4394ba
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.004391ef
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*4 + 0x500]
call fcn.00460653
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0046051a
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [str.hexfile]
push edx
push 0x483fbc
lea eax, [ebp - 0x10]
push eax
call fcn.0045b306
add esp, 0x10
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x570]
push eax
push 0x483fc4
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0045b306
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43948c
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
test edx, edx
je 0x43948c
mov eax, dword [ebp - 0x18]
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040dff0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x43956e
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x35c], 1
jne 0x43956e
mov edx, dword [str.binfile.bin]
push edx
push 0x483fcc
lea eax, [ebp - 0x10]
push eax
call fcn.0045b306
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x570]
push eax
push 0x483fd0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0045b306
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x439545
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
test edx, edx
je 0x439545
mov eax, dword [ebp - 0x18]
and al, 0xfe
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040dff0
push eax
mov ecx, dword [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
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