Function at 0x10032c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x101b9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x40], 0
je 0x10032ca9
mov esi, ecx
mov eax, dword [ecx + 0x5c]
test al, 8
jne 0x10032cb1
xor ecx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], ecx
lea ecx, [esi + 0x20]
lea edx, [esi + 0x38]
xor ebx, ebx
cmp byte [esi + 0x62], 0
cmove ecx, edx
sete bl
mov edx, dword [ecx]
mov ecx, dword [esi + ebx*8 + 0x34]
add ecx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x5c], 8
jmp 0x10032cb4
xor edi, edi
dec edi
jmp 0x10032e77
mov ecx, dword [esi + 0xc]
mov byte [ebp - 0x11], 0xff
test ecx, ecx
je 0x10032cc1
mov edx, dword [esi + 0x10]
jmp 0x10032cd2
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x11]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov ecx, edx
xor ebx, ebx
test al, 8
je 0x10032cf1
mov eax, edx
sub eax, dword [esi + 8]
mov edi, eax
shr edi, 0x1f
add edi, eax
sar edi, 1
cmp edi, 4
mov ebx, 4
cmovb ebx, edi
cmp ecx, edx
je 0x10032cfd
movzx edi, byte [ecx]
jmp 0x10032e64
sub edx, ebx
push ebx
push edx
push dword [esi + 8]
call fcn.10148eb0
add esp, 0xc
cmp byte [esi + 0x62], 0
je 0x10032d4a
mov eax, dword [esi + 8]
add eax, ebx
mov ecx, dword [esi + 0x10]
sub ecx, eax
push dword [esi + 0x40]
push ecx
push 1
push eax
call fcn.10160df7
add esp, 0x10
test eax, eax
je 0x10032e61
mov ecx, dword [esi + 8]
lea edx, [ecx + ebx]
add eax, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
movzx edi, byte [ecx + ebx]
jmp 0x10032e64
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
test ecx, ecx
jne 0x10032d61
test eax, eax
mov eax, 0
jne 0x10032e8b
sub eax, ecx
je 0x10032d7a
push eax
push ecx
push dword [esi + 0x20]
call fcn.10148eb0
add esp, 0xc
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
jmp 0x10032d7c
mov eax, ecx
sub eax, ecx
mov ecx, dword [esi + 0x20]
add eax, ecx
mov dword [esi + 0x24], eax
lea edx, [esi + 0x2c]
cmp ecx, edx
je 0x10032d92
mov edx, dword [esi + 0x34]
jmp 0x10032d97
mov edx, 8
add ecx, edx
mov dword [esi + 0x28], ecx
sub ecx, eax
mov edx, dword [esi + 0x3c]
mov edi, dword [esi + 0x40]
mov dword [ebp - 0x1c], edi
sub edx, ebx
cmp ecx, edx
cmovb edx, ecx
mov ecx, dword [esi + 0x48]
mov edi, dword [esi + 0x4c]
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], ecx
push dword [ebp - 0x1c]
push edx
push 1
push eax
call fcn.10160df7
add esp, 0x10
test eax, eax
je 0x10032e61
mov edi, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10032ea9
mov ecx, eax
add edi, dword [esi + 0x24]
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
mov dword [esi + 0x28], edi
lea eax, [ebp - 0x18]
mov dword [eax], 0xffffffff
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x3c]
add edx, eax
mov dword [ebp - 0x2c], edx
add eax, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ecx]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x28], ecx
lea eax, [esi + 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x30], eax
call dword [section..00cfg]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [ebp - 0x28]
cmp eax, 3
jne 0x10032e4c
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x28]
mov dword [esi + 8], ebx
jmp 0x10032e56
mov eax, dword [ebp - 0x18]
add ebx, dword [esi + 8]
cmp eax, ebx
je 0x10032e61
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
movzx edi, byte [ebx]
jmp 0x10032e64
xor edi, edi
dec edi
lea eax, [ebp - 0x11]
cmp dword [esi + 8], eax
jne 0x10032e77
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101465a3
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push str.underflow_moving_from_NULL
push str.____extbufnext___NULL_____extbufend______extbufnext___
push 0x2f2
push str....._buildtools_third_partylibc_trunkinclude_fstream
push str._s:_d:_assertion__s_failed:__s
call fcn.10036b34
call fcn.100330c3
int3