Function at 0x10039217
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
lea ecx, [esi + 0x370]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x1003923b
xor eax, eax
inc eax
jmp 0x100394ba
mov ecx, dword [esi + 0x360]
imul edi, ecx, 0x30
lea eax, [ecx + 1]
add edi, 0x380
add edi, esi
and eax, 0x80000007
jns 0x1003925b
dec eax
or eax, 0xfffffff8
inc eax
mov dword [esi + 0x360], eax
xor eax, eax
cmp dword [edi + 0x18], eax
jne 0x10039313
mov eax, dword [esi + 0x32c]
push 0
mov ecx, dword [eax + 0x10]
pop eax
push 0
push ecx
lea edx, [ecx - 1]
add edx, 0x10000
mov dword [ebp - 4], edx
adc eax, eax
push eax
push edx
call fcn.10114440
mov ecx, dword [ebp - 4]
push 4
sub ecx, eax
xor eax, eax
push 0x1000
push ecx
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
test eax, eax
jne 0x100392cc
push 0x10013414
push 0xc
push ebx
call sym.archiveint.dll_archive_set_error
add esp, 0xc
mov dword [ebx + 4], 0x8000
push 0xffffffffffffffe2
pop eax
jmp 0x100394ba
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x1c], eax
xor eax, eax
push eax
push eax
push 1
push eax
mov dword [edi + 0x14], ebx
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10039308
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
call fcn.1006a813
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
push 0x10013430
push dword [eax]
jmp 0x100392b4
lea eax, [esi + 0x370]
mov dword [ebp - 0xc], eax
jmp 0x10039325
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lea edx, [esi + 0x370]
mov dword [ebp - 0xc], edx
mov ecx, dword [esi + 0x31c]
xor edx, edx
mov eax, dword [edi + 0x1c]
mov dword [ebp - 4], eax
cmp edx, dword [ecx + 4]
jl 0x10039343
jg 0x1003933e
cmp eax, dword [ecx]
jbe 0x10039343
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov edx, dword [esi + 0x37c]
mov eax, dword [esi + 0x378]
mov dword [ebp - 8], edx
mov edx, dword [ecx + 0xc]
cmp edx, dword [esi + 0x37c]
lea edx, [esi + 0x370]
jl 0x10039381
jg 0x1003936a
cmp dword [ecx + 8], eax
jbe 0x10039381
sub eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
sbb dword [ebp - 8], edx
lea edx, [esi + 0x370]
add dword [edx], eax
mov eax, dword [ebp - 8]
adc dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0x24], ecx
mov dword [edi + 0xc], ecx
cmp dword [edx + 4], eax
jl 0x100393b6
mov eax, dword [ebp - 4]
jg 0x100393a3
cmp dword [edx], eax
jbe 0x100393b6
mov edx, dword [ebp - 0xc]
mov dword [edi + 0x28], eax
sub dword [edx], eax
mov eax, dword [edx + 4]
sbb eax, 0
mov dword [edx + 4], eax
jmp 0x100393c5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edi + 0x2c], ecx
mov eax, dword [esi + 0x31c]
add dword [eax + 8], edx
adc dword [eax + 0xc], ecx
mov eax, dword [esi + 0x31c]
sub dword [eax], edx
sbb dword [eax + 4], ecx
mov ecx, dword [esi + 0x31c]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esi + 0x37c], ecx
mov ecx, dword [esi + 0x31c]
mov dword [esi + 0x378], eax
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x10039424
cmp dword [esi + 0x374], eax
jl 0x10039424
jg 0x1003941b
cmp dword [esi + 0x370], eax
jbe 0x10039424
lea eax, [ecx + 0x10]
mov dword [esi + 0x31c], eax
push edi
lea eax, [ebp - 0x10]
push eax
push edx
push dword [edi + 0x18]
push dword [esi + 0x344]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x1003949a
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x26
jne 0x10039454
push 0x10013444
push 0xffffffffffffffff
jmp 0x100392b4
cmp eax, 0x3e5
je 0x100394a0
cmp eax, 0xe8
jne 0x10039470
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 0xb
jmp 0x1003948a
cmp eax, 5
jne 0x10039483
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
mov dword [eax], 9
jmp 0x1003948a
mov ecx, eax
call fcn.1006a813
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
push 0x1001345c
jmp 0x10039304
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x370]
inc dword [esi + 0x368]
or eax, dword [esi + 0x374]
je 0x10039233
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret