Function at 0x468230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x48d800]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x23c], ecx
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
jb 0x468269
push 0x24000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x468492
cmp dword [ebp + 0xc], 0
jne 0x46829b
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0x24000004
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x468492
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], eax
jae 0x4682e3
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx + 0x14]
add eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push 0x24000004
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x468492
mov dword [ebp - 8], 0
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x468460
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x22c]
push edx
push 0x214
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
jne 0x468397
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x238], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x468492
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [ebp - 4]
je 0x4683b4
push 0x24000005
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x468492
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x10]
je 0x4683e3
lea ecx, [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x23c]
call fcn.00467c60
test eax, eax
je 0x4683e3
jmp 0x468460
lea edx, [ebp - 0x214]
push edx
call fcn.00429340
add esp, 4
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x234]
mov ecx, dword [ebp + 0x10]
cmp eax, dword [ecx]
jbe 0x468429
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
push 0x24000005
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x468492
mov edx, dword [ebp - 0x234]
push edx
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
push ecx
call fcn.00427b40
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x234]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], eax
jmp 0x468323
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax + 0x14]
add ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427b2d
mov esp, ebp
pop ebp
ret 0xc