Function at 0x1007f7ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 0xa4]
mov dword [esp + 0x28], ebx
mov eax, dword [ebx + 0x1020c]
mov esi, dword [eax + 0xc]
cmp byte [esi + 0x74], 0
jne 0x1007f7df
xor eax, eax
jmp 0x1007f9ae
push 0x70
lea eax, [esp + 0x44]
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esi + 0x78]
xor edx, edx
mov dword [esp + 0x54], eax
add esp, 0xc
mov dword [esp + 0x4c], edx
movzx eax, byte [esi + 0x75]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x101dc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x101d8]
sub eax, dword [ebx + 0x101d0]
mov ebx, dword [esi + 0x50]
sbb ecx, edx
add eax, 0x10000
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x48]
adc ecx, edx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x3c], ecx
mov ecx, 0x8000
mov dword [esp + 0x10], eax
cmp ebx, ecx
mov eax, ebx
cmova eax, ecx
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_malloc]
mov dword [esp + 0x1c], eax
pop ecx
test eax, eax
jne 0x1007f928
push 0x100130fc
push 0xc
push edi
call sym.archiveint.dll_archive_set_error
add esp, 0xc
push 0xffffffffffffffe2
pop eax
jmp 0x1007f9ae
push 1
push 0
push 0
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__lseeki64]
push 0
push dword [esp + 0x24]
mov dword [esp + 0x48], eax
push dword [esp + 0x24]
mov dword [esp + 0x48], edx
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__lseeki64]
mov eax, dword [esp + 0x48]
add esp, 0x20
cmp dword [esp + 0x24], ebx
mov ecx, ebx
mov edx, dword [esp + 0x18]
cmovbe ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [eax + 4]
call fcn.1006a162
mov dword [esp + 0x20], eax
cdq
mov ecx, edx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
test edx, edx
jle 0x1007f9ba
push 0
push dword [esp + 0x30]
sub ebx, edx
add dword [esp + 0x14], eax
push dword [esp + 0x38]
adc dword [esp + 0x1c], ecx
push dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__lseeki64]
add esp, 0x10
lea edx, [esp + 0x40]
mov ecx, edi
push dword [esp + 0x20]
push dword [esp + 0x1c]
call fcn.1007f556
mov ebx, eax
test ebx, ebx
js 0x1007f9b5
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x1007f87c
mov eax, dword [esp + 0x38]
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x3c]
push ebx
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x78]
push eax
push dword [esi + 0x10]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
call sym.archiveint.dll__archive_entry_set_size_12
push dword [esi + 0x54]
mov ecx, edi
mov word [esi + 0x74], bx
push dword [esi + 0x50]
mov dword [esi + 0x78], ebx
call fcn.10078a10
push 0xffffffffffffffe2
test eax, eax
pop esi
cmovs ebx, esi
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
pop ecx
push dword [esp + 0x5c]
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_free]
cmp dword [esp + 0xac], 0
pop ecx
je 0x1007f9ac
lea ecx, [esp + 0x70]
call fcn.1008b48e
test eax, eax
je 0x1007f9ac
push 0x100201d0
push 0xffffffffffffffff
push edi
call sym.archiveint.dll_archive_set_error
add esp, 0xc
mov ebx, esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffe2
pop esi
jmp 0x1007f96d
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__errno]
push dword [esp + 0x1c]
push dword [esp + 0x38]
push 0x10021114
push dword [eax]
push edi
call sym.archiveint.dll_archive_set_error
add esp, 0x14
push 0xffffffffffffffe2
pop esi
mov ebx, esi
jmp 0x1007f96d