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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x49]
cmp eax, 4
jne 0x1008a683
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x44]
jmp 0x1008a92d
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.100807b0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008a6ab
mov eax, dword [ebp - 0xc]
jmp 0x1008a92d
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x1008a719
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10080510
add esp, 0x10
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x48]
and edx, 2
je 0x1008a719
cmp dword [ebp + 0x14], 0
jl 0x1008a719
jg 0x1008a6e4
cmp dword [ebp + 0x10], 0
jbe 0x1008a719
mov eax, dword [ebp + 0x10]
sub eax, 1
mov ecx, dword [ebp + 0x14]
sbb ecx, 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 0x38]
jne 0x1008a719
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebp - 0x34]
jne 0x1008a719
mov dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x14], 0
jne 0x1008a750
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100808d0
add esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008a750
mov eax, dword [ebp - 0xc]
jmp 0x1008a92d
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x4c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x78]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x50]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10087710
add esp, 0x24
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008a7a4
jmp 0x1008a92a
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x4c]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2 + 0x4e]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14], 0
jne 0x1008a876
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x44]
push eax
call fcn.1007b9a0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1008a7dd
jmp 0x1008a92a
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 0x18]
lea ecx, [ecx + eax*2]
mov eax, 1
imul eax, eax, 0
movzx ecx, byte [ecx + eax]
shl ecx, 8
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x40]
mov esi, dword [ebp - 0x18]
lea eax, [eax + esi*2]
mov esi, 1
shl esi, 0
movzx eax, byte [eax + esi]
or ecx, eax
and edx, ecx
mov ecx, dword [ebp - 0x10]
add edx, dword [ecx + 0x38]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 5]
test eax, eax
jne 0x1008a839
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ecx], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10087560
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
movzx edx, word [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10087a90
add esp, 0x10
cmp dword [ebp - 0xc], 0
je 0x1008a874
jmp 0x1008a92a
jmp 0x1008a8b8
cmp dword [ebp - 0x14], 0
jge 0x1008a8b8
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x12]
test eax, eax
jle 0x1008a8b8
mov ecx, dword [ebp + 8]
movsx edx, word [ecx + 0x4c]
mov eax, dword [ebp + 8]
mov cx, word [eax + edx*2 + 0x4e]
add cx, 1
mov word [ebp - 2], cx
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
mov ecx, dword [ebp + 8]
mov dx, word [ebp - 2]
mov word [ecx + eax*2 + 0x4e], dx
movzx eax, word [ebp - 2]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10087c80
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x2c], ax
cmp dword [ebp - 0xc], 0
jne 0x1008a92a
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 1]
test eax, eax
je 0x1008a92a
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x48]
and edx, 0xfffffffd
mov eax, dword [ebp + 8]
mov byte [eax + 0x48], dl
mov ecx, dword [ebp + 8]
push ecx
call fcn.1008a400
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
movsx eax, word [edx + 0x4c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x78]
mov byte [edx + 1], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x49], 0
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret