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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cbfb
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.0040e500
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040e500
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x35c], 0
jne 0x43aa1b
mov dword [ebp - 0x1c], 0
jmp 0x43a892
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 8
jge 0x43aa16
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + edx*4 + 0x504]
call fcn.0040e630
test eax, eax
je 0x43a8b4
jmp 0x43a889
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
lea eax, [edx + ecx*4 + 0x504]
push eax
push 0x486298
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0046247f
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.00462419
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.00462323
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004621ea
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
mov eax, dword [str.hexfile]
push eax
push 0x48629c
lea ecx, [ebp - 0x10]
push ecx
call fcn.0045cfab
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 0x4862a4
mov eax, dword [ebp - 0x40]
add eax, 0x570
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0046247f
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.00462419
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.00462323
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004621ea
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43a9e8
lea ecx, [ebp - 0x14]
call fcn.0040e520
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 0x43a9e8
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
push edx
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x43a889
jmp 0x43abaf
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x35c], 1
jne 0x43abaf
mov ecx, dword [ebp - 0x40]
add ecx, 0x524
call fcn.0040e630
test eax, eax
je 0x43aa5d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004621ea
jmp 0x43abca
mov ecx, dword [ebp - 0x40]
add ecx, 0x524
push ecx
push 0x4862a8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.0046247f
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.00462419
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.00462323
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004621ea
mov eax, dword [str.binfile.bin]
push eax
push 0x4862ac
lea ecx, [ebp - 0x10]
push ecx
call fcn.0045cfab
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0x4862b0
mov eax, dword [ebp - 0x40]
add eax, 0x570
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.0046247f
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.00462419
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.00462323
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.004621ea
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004621ea
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x43ab86
lea ecx, [ebp - 0x14]
call fcn.0040e520
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 0x43ab86
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
push edx
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x14]
call fcn.0040e520
push eax
lea ecx, [ebp - 0x10]
call fcn.0040e520
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004621ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004621ea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4