Function at 0x432478
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7bc
push ebx
xor ebx, ebx
mov dword [ebp - 0x844], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x432a62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 4], edx
mov dword [ebp - 0x10], 0xffffffff
push 0
push 0
mov ecx, 0x400
mov dl, 1
mov eax, dword [0x41a798]
call fcn.0041a920
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x432a3a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 0xc]
call fcn.00405290
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x432525
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 2
jmp 0x432a0f
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp byte [eax + 0x19], 1
jb 0x432541
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp byte [eax + 0x19], 0xc8
jbe 0x43254d
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov byte [eax + 0x19], 0xc8
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp byte [eax + 0x18], 1
jb 0x432569
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp byte [eax + 0x18], 0x14
jbe 0x432575
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov byte [eax + 0x18], 0x14
mov eax, dword [ebp - 4]
call fcn.0042f93c
movzx eax, byte [eax + 0x18]
shl eax, 0xa
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
call fcn.0042f93c
xor edx, edx
mov dword [eax + 0x14], edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4325ae
cmp dword [ebp - 0x18], 0
jne 0x4325c2
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0xffffffff
jmp 0x432a0f
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp dword [eax + 4], 0
jne 0x43265c
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov edx, dword [ebp - 0x18]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
call fcn.0042f93c
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
call fcn.0042f93c
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
call fcn.0042f93c
add eax, 0x24
call fcn.00404de4
push 1
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov edx, eax
lea ecx, [ebp - 0x840]
mov eax, dword [ebp - 0x10]
call fcn.00432190
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp dword [eax + 8], 0
jle 0x432648
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov edx, dword [eax + 8]
mov eax, dword [ebp - 4]
call fcn.0042f9ac
jmp 0x4326ab
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0x54
jmp 0x432a0f
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov eax, dword [eax + 4]
cmp eax, dword [ebp - 0x18]
je 0x432680
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0x18
jmp 0x432a0f
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp ebx, dword [eax + 4]
jb 0x4326ab
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0x26
jmp 0x432a0f
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x4326f5
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x800
lea eax, [ebp - 0x840]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x432709
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0x1e
jmp 0x432a0f
lea eax, [ebp - 0x840]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x840]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x432795
jmp 0x432736
dec dword [ebp - 0x1c]
inc dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042f93c
inc dword [eax]
inc dword [ebp - 0x3c]
cmp dword [ebp - 0x1c], 0
jbe 0x432749
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
sub al, 0xa
je 0x432723
sub al, 3
je 0x432723
cmp dword [ebp - 0x1c], 0
jbe 0x432765
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xffffffff
jmp 0x432795
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp ebx, dword [eax + 4]
jb 0x4329d8
jmp 0x4329f3
dec dword [ebp - 0x1c]
inc dword [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042f93c
inc dword [eax]
cmp dword [ebp - 0x1c], 0
jbe 0x4327a8
mov eax, dword [ebp - 0x38]
mov al, byte [eax]
sub al, 0xa
je 0x4327a8
sub al, 3
jne 0x432785
cmp dword [ebp - 0x1c], 0
jbe 0x4327bd
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x4327e6
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp ebx, dword [eax + 4]
jb 0x4329d8
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jle 0x4329d8
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jg 0x43282a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x2c]
jle 0x432839
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov edx, dword [ebp - 0x28]
sub dword [eax], edx
jmp 0x4329f3
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0xe
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp dword [eax + 0x14], 0xe
je 0x4329a7
cmp dword [ebp - 0x28], 0x800
jg 0x432864
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x3c]
call fcn.00404ed4
jmp 0x4328b6
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
xor edx, edx
call fcn.00404ed4
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x4328a2
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4328b6
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0x1e
jmp 0x432a0f
mov edx, dword [ebp - 0x40]
mov eax, 0x432a78
call fcn.00405380
dec eax
jne 0x4329ca
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x28]
call fcn.0043241c
test al, al
je 0x4328f4
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x4328f4
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov edx, dword [ebp - 0x28]
sub dword [eax], edx
jmp 0x4329f3
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.00411d48
test al, al
jne 0x432917
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov dword [eax + 0x14], 0x37
jmp 0x432a0f
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov ecx, eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
call fcn.00431ff8
test al, al
je 0x432997
xor ecx, ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x14]
call fcn.0041aaf0
xor ecx, ecx
mov edx, 0x432a90
mov eax, dword [ebp - 0x14]
call fcn.0041aaf0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [edx + eax*4 + 8], ecx
mov eax, dword [ebp - 0xc]
inc dword [eax + 4]
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp ebx, dword [eax + 4]
jae 0x4329ca
mov eax, dword [ebp - 4]
call fcn.0042f93c
movzx eax, byte [eax + 0x19]
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 4]
jbe 0x4329f3
jmp 0x4329ca
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp dword [eax + 0x14], 0x1d
je 0x432a0f
jmp 0x4329ca
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov edx, eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.00432104
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp dword [eax + 0x14], 0
jne 0x432a0f
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x24], 0xffffffff
mov eax, dword [ebp - 4]
call fcn.0042f93c
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
call fcn.0042f93c
cmp ebx, dword [eax + 4]
jb 0x4326b9
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 0x14]
call fcn.0041ad38
mov edx, dword [ebp - 0x844]
mov eax, dword [ebp + 8]
call fcn.00404e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432a41
mov eax, dword [ebp - 0x10]
call fcn.0041b57c
test al, al
je 0x432a31
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
call fcn.00403fe0
ret