Function at 0x432190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4323ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x432200
push 0
lea eax, [ebp - 0x10]
push eax
push 0x800
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x43220f
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0x1e
jmp 0x4323c3
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x43227c
jmp 0x432231
dec dword [ebp - 0x10]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 8]
inc dword [eax]
inc dword [ebp - 0x28]
cmp dword [ebp - 0x10], 0
jbe 0x432244
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
sub al, 0xa
je 0x432223
sub al, 3
je 0x432223
cmp dword [ebp - 0x10], 0
jbe 0x43225b
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xffffffff
jmp 0x43227c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 4]
jb 0x4323b2
jmp 0x4323c3
dec dword [ebp - 0x10]
inc dword [ebp - 0x24]
mov eax, dword [ebp - 8]
inc dword [eax]
cmp dword [ebp - 0x10], 0
jbe 0x43228f
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
sub al, 0xa
je 0x43228f
sub al, 3
jne 0x432271
cmp dword [ebp - 0x10], 0
jbe 0x43229f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
jmp 0x4322b9
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 4]
jb 0x4323b2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x4323b2
cmp dword [ebp - 0x1c], 0x800
jle 0x432319
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x432304
push 0
lea eax, [ebp - 0x10]
push eax
push 0xc
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x432313
mov eax, dword [ebp - 8]
mov dword [eax + 0x14], 0x1e
jmp 0x4323c3
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x20], 0
jne 0x432374
mov edx, 0x4323fc
mov ecx, 0xc
mov eax, dword [ebp - 0x28]
call fcn.0040a9ec
test al, al
je 0x432374
add dword [ebp - 0x28], 0xc
cmp dword [ebp - 0x1c], 0xc
jle 0x432374
mov ecx, dword [ebp - 0x1c]
sub ecx, 0xc
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.00404ed4
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
call fcn.0041bb18
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0041bc28
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
add eax, 0x24
call fcn.00404e38
inc dword [ebp - 0x20]
mov edx, 0x43240c
mov ecx, 0xc
mov eax, dword [ebp - 0x28]
call fcn.0040a9ec
test al, al
je 0x432393
mov eax, dword [ebp - 8]
inc dword [eax + 8]
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
cmp byte [ebp + 8], 0
jne 0x4323b2
mov eax, dword [ebp - 8]
cmp dword [eax], 0x800
jae 0x4323c3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 4]
jb 0x4321cc
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4323f4
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00404e08
lea eax, [ebp - 0x2c]
call fcn.00404de4
ret