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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a488
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.00404cc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404cc0
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x2a4], 0
jne 0x42bb89
mov dword [ebp - 0x1c], 0
jmp 0x42ba00
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 4
jge 0x42bb84
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + edx*4 + 0x448]
call fcn.0040cec0
test eax, eax
je 0x42ba22
jmp 0x42b9f7
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
lea eax, [edx + ecx*4 + 0x448]
push eax
push 0x46f7a8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004505f2
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.0045058c
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.00450496
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0045035d
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
mov eax, dword [str.hexfile]
push eax
push 0x46f7ac
lea ecx, [ebp - 0x10]
push ecx
call fcn.0044b146
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
push 0x46f7b4
mov eax, dword [ebp - 0x40]
add eax, 0x490
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004505f2
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.0045058c
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.00450496
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0045035d
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42bb56
lea ecx, [ebp - 0x14]
call fcn.00404d20
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 0x42bb56
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
push edx
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x10]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x42b9f7
jmp 0x42bd1d
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x2a4], 1
jne 0x42bd1d
mov ecx, dword [ebp - 0x40]
add ecx, 0x458
call fcn.0040cec0
test eax, eax
je 0x42bbcb
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0045035d
jmp 0x42bd38
mov ecx, dword [ebp - 0x40]
add ecx, 0x458
push ecx
push 0x46f7b8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004505f2
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.0045058c
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.00450496
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.0045035d
mov eax, dword [str.binfile]
push eax
push 0x46f7bc
lea ecx, [ebp - 0x10]
push ecx
call fcn.0044b146
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0x46f7c0
mov eax, dword [ebp - 0x40]
add eax, 0x490
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.004505f2
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.0045058c
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.00450496
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3c]
call fcn.0045035d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0045035d
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42bcf4
lea ecx, [ebp - 0x14]
call fcn.00404d20
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 0x42bcf4
mov edx, dword [ebp - 0x18]
and edx, 0xfffffffe
push edx
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x14]
call fcn.00404d20
push eax
lea ecx, [ebp - 0x10]
call fcn.00404d20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045035d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0045035d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4