Function at 0x10031d50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1011e450
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov bl, byte [esp + 0x8c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
xor edi, edi
mov dword [esp + 0x48], 1
xor esi, esi
cmp dword [eax + 0x20], edi
jne 0x10031de0
mov esi, 0x10
cmp dword [esp + 0x6c], esi
jb 0x10031daf
mov eax, dword [esp + 0x58]
push eax
call fcn.100f4085
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], esi
jb 0x10031dd6
mov ecx, dword [esp + 0x74]
push ecx
call fcn.100f4085
add esp, 4
mov eax, 0xffffff9a
jmp 0x1003205a
push 0x2000
call fcn.100f62fe
mov ebp, eax
add esp, 4
cmp ebp, edi
jne 0x10031e49
push str.Error_allocating_memory_n
call fcn.100f64b3
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x10031e18
mov edx, dword [esp + 0x58]
push edx
call fcn.100f4085
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], edi
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], esi
jb 0x10031e3f
mov eax, dword [esp + 0x74]
push eax
call fcn.100f4085
add esp, 4
mov eax, 0xffffff98
jmp 0x1003205a
mov ecx, dword [esp + 0x84]
push edi
push 0x1013e2a2
push ecx
push edi
lea ecx, [esp + 0x80]
call fcn.10005970
test eax, eax
jne 0x10031e79
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x7c]
call fcn.100057a0
test bl, 8
je 0x10031e83
mov esi, 1
test bl, 0x10
je 0x10031e8d
mov esi, 9
mov eax, dword [esp + 0x58]
mov ebx, 0x10
cmp dword [esp + 0x6c], ebx
jae 0x10031ea0
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push ecx
push ebp
push eax
call fcn.10031b60
mov eax, dword [esp + 0x64]
add esp, 0xc
cmp dword [esp + 0x6c], ebx
jae 0x10031ebd
lea eax, [esp + 0x58]
call fcn.10031c20
mov edi, dword [esp + 0x74]
cmp dword [esp + 0x88], ebx
jae 0x10031ed3
lea edi, [esp + 0x74]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x20]
push eax
mov ecx, esi
neg ecx
push esi
lea eax, [esp + 0x24]
sbb ecx, ecx
push eax
and ecx, 8
push edi
call fcn.10051080
mov esi, eax
mov eax, dword [esp + 0x68]
add esp, 0x10
test esi, esi
je 0x10031f1a
cmp dword [esp + 0x6c], ebx
jae 0x10031f07
lea eax, [esp + 0x58]
push eax
push str.error_in_opening__s_in_zipfile_n
call fcn.100f64b3
add esp, 8
jmp 0x10031ffd
cmp dword [esp + 0x6c], ebx
jae 0x10031f24
lea eax, [esp + 0x58]
push 0x1013e254
push eax
call fcn.100f5169
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10031f5d
mov eax, dword [esp + 0x58]
or esi, 0xffffffff
cmp dword [esp + 0x6c], 0x10
jae 0x10031f4a
lea eax, [esp + 0x58]
push eax
push str.error_in_opening__s_for_reading_n
call fcn.100f64b3
add esp, 8
jmp 0x10031feb
push ebx
push 0x2000
push 1
push ebp
xor esi, esi
call fcn.100f5473
mov edi, eax
add esp, 0x10
cmp edi, 0x2000
jge 0x10031fa7
push ebx
call fcn.100f6247
add esp, 4
test eax, eax
jne 0x10031fa7
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x10031f96
lea eax, [esp + 0x58]
push eax
push str.error_in_reading__s_n
call fcn.100f64b3
add esp, 8
or esi, 0xffffffff
test edi, edi
jle 0x10031fdf
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push edi
push ebp
call fcn.10051660
mov esi, eax
add esp, 8
test esi, esi
jge 0x10031fe1
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x10031fd1
lea eax, [esp + 0x58]
push eax
push str.error_in_writing__s_in_the_zipfile_n
call fcn.100f64b3
add esp, 8
test esi, esi
jne 0x10031feb
test edi, edi
jg 0x10031f5d
test ebx, ebx
je 0x10031ff8
push ebx
call fcn.100f44fd
add esp, 4
mov ebx, 0x10
test esi, esi
jne 0x10032011
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x20]
push eax
call fcn.10051760
add esp, 4
push ebp
call fcn.100f355b
add esp, 4
cmp dword [esp + 0x6c], ebx
jb 0x1003202d
mov ecx, dword [esp + 0x58]
push ecx
call fcn.100f4085
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], ebx
jb 0x10032058
mov edx, dword [esp + 0x74]
push edx
call fcn.100f4085
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x40