Function at 0x430b80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x390
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3a0]
push edi
mov ecx, dword [esi + 0x224]
test ecx, ecx
je 0x430f40
call fcn.00425ae0
cmp eax, 0xffffffff
je 0x430f40
mov ecx, 0x97
xor eax, eax
lea edi, [esp + 0x40]
mov ebx, 0x88b8
rep stosd dword es:[edi], eax
lea edi, [esi + 0x120]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x198]
mov ebp, 1
push edi
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x29c]
push 0x104
push edx
call fcn.00437860
add esp, 8
lea eax, [esp + 0x29c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x58]
lea edx, [esp + 0x29c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x430f40
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esi + 0x224]
lea eax, [esp + 0x40]
push 0x25c
push eax
mov dword [esp + 0x54], 0x1000
call fcn.0042cfc0
test eax, eax
je 0x430f40
lea ecx, [esp + 0x40]
push 0x25c
push ecx
mov ecx, dword [esi + 0x224]
call fcn.0042d0f0
test eax, eax
je 0x430f40
cmp dword [esp + 0x40], ebx
je 0x430c8e
mov dword [esi + 0x114], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov eax, dword [esp + 0x48]
test eax, eax
je 0x430caf
mov dword [esi + 0x118], ebp
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
push 0x1002
call fcn.00447df9
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x430d11
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0x88c2
call edi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x430ce2
mov dword [esp + 0x1c], 8
mov ecx, dword [esi + 0x224]
lea edx, [esp + 0x14]
push 0x2c
push edx
call fcn.0042cfc0
test eax, eax
jne 0x430f4c
call edi
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov ecx, 0x400
xor eax, eax
mov edi, ebx
push 0
rep stosd dword es:[edi], eax
push 0
push 3
stosw word es:[edi], ax
push 0
push ebp
lea eax, [esp + 0x2b0]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
test ebp, ebp
jne 0x430d9a
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], 0x88c2
call edi
test eax, eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x114], eax
jne 0x430d66
mov dword [esp + 0x1c], 2
lea ecx, [esp + 0x14]
push 0x2c
push ecx
mov ecx, dword [esi + 0x224]
call fcn.0042cfc0
test eax, eax
jne 0x430d84
call edi
mov dword [esi + 0x114], eax
push ebx
call fcn.00447a4f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x390
ret
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x430dc9
push 0
push 0
push 0
call fcn.00428ee0
add esp, 0xc
mov dword [esp + 0x38], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x10]
push 0
push edx
push 0x1000
push ebx
push ebp
call edi
test eax, eax
mov dword [esp + 0x14], 0x88c2
je 0x430e92
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x50]
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x430e1d
mov edx, dword [esp + 0x38]
push eax
push ebx
push edx
call fcn.00428ee0
add esp, 0xc
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x224]
lea eax, [esp + 0x14]
push 0x2c
push eax
mov dword [esp + 0x24], 0
call fcn.0042cfc0
test eax, eax
je 0x430e69
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x430eca
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x224]
push ebx
call fcn.0042cfc0
test eax, eax
je 0x430e69
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x430eca
jmp 0x430dcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x114], eax
call fcn.00447a4f
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x430eaa
mov dword [esp + 0x1c], 0x1e
mov ecx, dword [esi + 0x224]
lea edx, [esp + 0x14]
push 0x2c
push edx
call fcn.0042cfc0
test eax, eax
jne 0x430ed0
call edi
mov dword [esi + 0x114], eax
jmp 0x430ed0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00447a4f
mov ecx, dword [esi + 0x224]
add esp, 4
lea eax, [esp + 0x14]
push 0x2c
push eax
call fcn.0042d0f0
test eax, eax
jne 0x430f0b
call edi
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x430f30
mov dword [esi + 0x114], eax
mov dword [esi + 0x118], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x390
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x390
ret