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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x101a7680]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x10], 0x101b01ed
push edi
push str.multi_pack_index
mov dl, 0x2f
mov dword [esp + 0x1c], 0
push dword [ebx + 0x70]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 0
call fcn.1002a4a0
add esp, 8
test eax, eax
js 0x1008fdab
mov eax, dword [ebx + 0x40]
lea esi, [ebx + 0x40]
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], eax
test eax, eax
je 0x1008fe15
push 0
push edi
call fcn.1003fe10
mov esi, eax
add esp, 8
test esi, esi
jns 0x1008fce6
call fcn.1013bc89
push str.open
mov edx, edi
mov ecx, dword [eax]
call fcn.10030250
mov esi, eax
add esp, 4
test esi, esi
js 0x1008fdc6
lea edx, [esp + 0x20]
mov dword [esp + 0x10], esi
mov ecx, esi
call fcn.100401b0
test eax, eax
js 0x1008fdbd
mov eax, dword [esp + 0x26]
and eax, 0xf000
cmp eax, 0x8000
jne 0x1008fdbd
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
test edx, edx
jne 0x1008fdbd
mov ecx, dword [esp + 0xc]
cmp eax, dword [ecx + 4]
jne 0x1008fdbd
sub eax, 0x14
sbb edx, edx
push edx
push eax
push ecx
lea edx, [esp + 0x7c]
mov ecx, esi
call fcn.100408c0
add esp, 0xc
mov esi, eax
push dword [esp + 0x10]
call fcn.10146751
add esp, 4
cmp esi, 0x14
jne 0x1008fdc6
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x70]
add edx, 0x38
mov esi, 0x10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1008fd7c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1008fd67
xor al, al
jmp 0x1008fd7e
mov al, 1
test al, al
jne 0x1008fdc6
cmp dword [esp + 0x18], 0
jbe 0x1008fda9
test edi, edi
je 0x1008fda9
cmp edi, 0x101b01ec
je 0x1008fda9
mov esi, dword [fcn.10032a50]
mov ecx, esi
push edi
call dword [0x1015f3cc]
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1012fb43
mov esp, ebp
pop ebp
ret
push esi
call fcn.10146751
add esp, 4
mov ecx, ebx
call fcn.1008f940
mov dword [esp + 0xc], eax
test eax, eax
jns 0x1008fe12
cmp dword [esp + 0x18], 0
jbe 0x1008fdab
test edi, edi
je 0x1008fdab
cmp edi, 0x101b01ec
je 0x1008fdab
mov esi, dword [fcn.10032a50]
mov ecx, esi
push edi
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1012fb43
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 0x40]
mov edx, edi
mov ecx, esi
call fcn.100bc8c0
cmp dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
jbe 0x1008fe50
test edi, edi
je 0x1008fe50
cmp edi, 0x101b01ec
je 0x1008fe50
mov esi, dword [fcn.10032a50]
mov ecx, esi
push edi
call dword [0x1015f3cc]
call esi
mov eax, dword [esp + 0x10]
lea esi, [ebx + 0x40]
add esp, 4
test eax, eax
js 0x1008fdab
mov edx, dword [esi]
lea ecx, [ebx + 0x44]
mov edx, dword [edx + 0x18]
call fcn.100386b0
mov eax, dword [ebx + 0x40]
xor esi, esi
cmp dword [eax + 0x18], esi
jbe 0x1008fda9
mov eax, dword [eax + 0x14]
mov edx, esi
mov ecx, ebx
push dword [eax + esi*4]
call fcn.1008fa20
mov edi, eax
add esp, 4
test edi, edi
js 0x1008fea8
mov eax, dword [ebx + 0x40]
inc esi
cmp esi, dword [eax + 0x18]
jb 0x1008fe73
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1012fb43
mov esp, ebp
pop ebp
ret
lea ecx, [ebx + 0x44]
mov edx, esi
call fcn.100386b0
mov ecx, ebx
call fcn.1008f940
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012fb43
mov esp, ebp
pop ebp
ret