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

Disassembly:
push 0x73c
mov eax, 0x10092359
call fcn.10068a21
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x508]
call fcn.10017d28
xor edi, edi
lea ecx, [ebp - 0x508]
push edi
push edi
push esi
mov dword [ebp - 4], edi
call fcn.1001c41e
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x19c]
call fcn.1001f1f3
mov byte [ebp - 4], 1
mov esi, edi
mov ebx, edi
call fcn.100196a8
push eax
lea ecx, [ebp - 0x94]
call fcn.1001f1f3
mov byte [ebp - 4], 2
call fcn.100196b4
mov ecx, eax
call fcn.1001fa0c
test al, al
je 0x10032353
lea eax, [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x94]
call fcn.1001f465
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.1001f42b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
jne 0x100322fd
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.1001f31a
jmp 0x100324ea
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x100322e9
push ebx
mov dword [ebp - 0x744], edi
call fcn.100683e8
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x744]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x744], ebx
je 0x100324d3
push esi
call fcn.10067e9c
pop ecx
mov esi, edi
jmp 0x100322e9
call fcn.100196b4
push eax
lea ecx, [ebp - 0x94]
call fcn.1001f465
call fcn.1001991d
test al, al
je 0x1003237a
call fcn.100196ba
mov dword [ebp - 0x73c], eax
jmp 0x100323e9
call fcn.100196c0
push eax
lea ecx, [ebp - 0x220]
call fcn.1001f1f3
push edi
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.1001f42b
push eax
call fcn.1001ea7b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x740], eax
call fcn.1001f42b
push eax
call fcn.10023a35
mov dword [ebp - 0x73c], eax
mov eax, dword [ebp - 0x740]
pop ecx
pop ecx
test eax, eax
je 0x100323d4
push eax
call fcn.10067e9c
pop ecx
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 2
call fcn.1001f31a
mov eax, dword [ebp - 0x73c]
test eax, eax
je 0x100322e9
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x748], edi
push eax
lea ecx, [ebp - 0x118]
call fcn.1001f1f3
push 0x1009595c
push 0x100ad74c
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 4
call fcn.1001fbca
lea eax, [ebp - 0x738]
push eax
lea eax, [ebp - 0x748]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.1001f42b
push eax
push dword [ebp - 0x73c]
call fcn.10023403
add esp, 0x14
test eax, eax
je 0x10032460
lea ecx, [ebp - 0x118]
call fcn.1001f31a
jmp 0x100322e9
mov ebx, dword [ebp - 0x50c]
test ebx, ebx
je 0x10032450
push ebx
call fcn.100683e8
push ebx
mov esi, eax
push esi
push dword [ebp - 0x748]
push dword [ebp - 0x73c]
call fcn.10023e87
add esp, 0x14
test eax, eax
je 0x100324b3
cmp eax, 0x600
je 0x100324b3
push esi
call fcn.10067e9c
pop ecx
mov esi, edi
call fcn.1001991d
test al, al
jne 0x10032450
push dword [ebp - 0x73c]
call fcn.100231e8
pop ecx
jmp 0x10032450
call fcn.1001991d
test al, al
jne 0x100324c8
push dword [ebp - 0x73c]
call fcn.100231e8
pop ecx
lea ecx, [ebp - 0x118]
call fcn.1001f31a
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 1
call fcn.1001f31a
test esi, esi
jne 0x1003256b
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x19c]
call fcn.1001f42b
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x73c], eax
cmp eax, 0xffffffff
je 0x10032567
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x10032567
push ebx
mov dword [ebp - 0x740], edi
call fcn.100683e8
pop ecx
push edi
mov esi, eax
lea eax, [ebp - 0x740]
push eax
push ebx
push esi
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x73c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x740], ebx
je 0x10032567
push esi
call fcn.10067e9c
pop ecx
jmp 0x1003257d
test esi, esi
je 0x1003257d
push ebx
push esi
call fcn.100321ce
push esi
mov edi, eax
call fcn.10067e9c
add esp, 0xc
lea ecx, [ebp - 0x19c]
call fcn.1001f31a
lea ecx, [ebp - 0x508]
call fcn.100181b4
mov eax, edi
call fcn.100689df
ret