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

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
mov edx, dword [ebx + 0x28]
mov edi, dword [esp + 0x24]
and edx, 0x1f000000
mov ecx, 0x8000
cmp edx, 0xb000000
je 0x1008cff5
xor eax, eax
cmp dword [ebx + 0x30], eax
setne al
push eax
push ebx
push edi
call fcn.1008e8f0
add esp, 0xc
test eax, eax
je 0x1008d553
jmp 0x1008d207
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x1008d011
cmp eax, 0xfffffff2
jae 0x1008d048
movsd xmm0, qword [ebx + 8]
ucomisd xmm0, xmm0
lahf
test ah, 0x44
jnp 0x1008d048
cmp dword [ebx + 0x30], 0
jne 0x1008d54b
cmp word [ebx + 0x2c], cx
jae 0x1008d048
cmp dword [ebx + 0x3c], 0
je 0x1008d03b
push 0
push ebx
push edi
call fcn.1008e8f0
add esp, 0xc
test eax, eax
jne 0x1008d207
pop edi
pop esi
pop ebp
mov eax, 0x7fff
pop ebx
add esp, 0x10
ret
push ebx
push edi
call fcn.10090050
mov ecx, dword [edi + 0x10]
add esp, 8
movzx esi, ax
mov ebp, esi
mov dword [esp + 0x14], eax
mov dl, byte [ecx + ebp*8 + 5]
mov byte [esp + 0x28], dl
cmp dl, 0x19
jne 0x1008d070
mov ebp, dword [ecx + ebp*8]
jmp 0x1008d073
mov ebp, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x1008d12a
mov esi, dword [ebp + 4]
cmp esi, 0xfffffff2
jae 0x1008d08b
lea esi, [ecx + 0xe]
jmp 0x1008d08d
not esi
lea eax, [edi - 0x128]
cmp ebp, eax
jne 0x1008d0d2
lea eax, [edi - 0x128]
push eax
push 0x19
push edi
call fcn.100887e0
mov ebp, dword [esp + 0x20]
mov ecx, 0x885
mov word [edi + 0x78], cx
add esp, 0xc
movzx ecx, bp
movzx eax, ax
mov word [edi + 0x74], cx
mov ecx, edi
mov word [edi + 0x76], ax
call fcn.100a5a50
mov eax, 0x7fff
jmp 0x1008d101
mov ebp, dword [esp + 0x14]
cmp dl, 0x38
mov ecx, 0x4080
mov eax, 0x4180
cmove eax, ecx
movzx ecx, bp
or ax, si
mov word [edi + 0x74], cx
mov word [edi + 0x78], ax
mov ecx, edi
xor eax, eax
mov word [edi + 0x76], ax
call fcn.100a5a50
test esi, esi
jne 0x1008d235
cmp dword [ebx + 0x3c], esi
je 0x1008d23e
push esi
push ebx
push edi
call fcn.1008e8f0
add esp, 0xc
test eax, eax
je 0x1008d23e
jmp 0x1008d207
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
movzx eax, byte [ebx + 0x2f]
and eax, 0x1f
mov dword [esp + 0x18], edx
sub eax, 4
cmp eax, 8
ja 0x1008d152
mov dword [esp + 0x10], 1
test ecx, 0x1f000000
jne 0x1008d15a
mov dword [esp + 0x10], 0
cmp dword [ebp + 4], 0xffffffff
jne 0x1008d356
cmp dword [ebx + 0x3c], 0
je 0x1008d1a5
test edx, edx
je 0x1008d1a5
push dword [edi - 0x98]
push edx
call fcn.1006bd20
add esp, 8
test eax, eax
je 0x1008d1a5
cmp dword [eax + 4], 0xffffffff
je 0x1008d1a5
cmp byte [esp + 0x28], 0x38
mov eax, 0x4180
mov ecx, 0x4080
cmove eax, ecx
mov word [edi + 0x78], ax
xor eax, eax
mov word [edi + 0x76], ax
jmp 0x1008d1de
cmp byte [esp + 0x28], 0x3a
jne 0x1008d1e9
lea eax, [edi - 0x128]
push eax
push 0x19
push edi
call fcn.100887e0
movzx edx, ax
add esp, 0xc
lea eax, [edi - 0x128]
mov word [edi + 0x76], dx
cmp ebp, eax
mov ecx, 0x985
mov eax, 0x885
cmove ecx, eax
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x74], si
call fcn.100a5a50
cmp dword [ebx + 0x3c], 0
je 0x1008d2fa
push 1
push ebx
push edi
call fcn.1008e8f0
add esp, 0xc
test eax, eax
je 0x1008d2fa
mov edx, dword [ebx + 0x38]
mov eax, edx
and eax, 0x1f000000
cmp eax, 0x8000000
je 0x1008d251
add dword [ebx + 0x3c], 0xffffffff
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [ebx + 0x28], edx
mov dword [ebx], eax
mov dword [ebx + 4], ecx
je 0x1008d55b
jmp 0x1008cfc2
cmp esi, 2
ja 0x1008d2dc
pop edi
imul eax, esi, 0xffffff
pop esi
pop ebp
pop ebx
add eax, 0x7fff
add esp, 0x10
ret
cmp dword [ebx + 0x30], 0
mov ecx, 0x10002b13
mov eax, 0x10002a5b
cmovne eax, ecx
push eax
push edi
call fcn.100908f0
mov ecx, dword [edi + 0x50]
mov edx, eax
mov ebp, dword [edi + 0x60]
add esp, 8
mov esi, dword [ecx + 0x10]
mov ecx, dword [ebx + 0x38]
mov dword [ebp + edx*4], ecx
mov eax, dword [ebx + 0x28]
mov dword [ebp + edx*4 + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebp + edx*4 + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + edx*8], eax
mov dword [esi + edx*8 + 4], 0xfffffff7
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + edx*8 + 8], eax
mov dword [esi + edx*8 + 0xc], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
mov dword [esi + edx*8 + 0x10], eax
mov dword [esi + edx*8 + 0x14], ecx
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x1008d2e4
mov dword [ebp + edx*4 + 0xc], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
push 3
push edx
push edi
mov dword [esi + edx*8 + 0x18], eax
mov dword [esi + edx*8 + 0x1c], ecx
call fcn.1008cee0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 2
push edx
push edi
call fcn.1008cee0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
lea eax, [edi - 0x128]
cmp ebp, eax
jne 0x1008d425
mov edx, dword [ebx + 0x2c]
mov eax, edx
shr eax, 0x18
and eax, 0x1f
sub eax, 0xf
cmp eax, 4
ja 0x1008d32f
mov ecx, edi
mov dword [edi + 0x76], 0x550e01d3
mov word [edi + 0x74], dx
call fcn.100a5a50
mov edx, eax
movzx ecx, word [ebx + 0x28]
mov eax, 0x3b05
mov word [edi + 0x74], cx
mov ecx, edi
mov word [edi + 0x78], ax
mov word [edi + 0x76], dx
call fcn.100a5a50
mov dword [esp + 0x14], eax
xor esi, esi
jmp 0x1008d429
xor eax, eax
cmp byte [esp + 0x28], 0x38
push esi
setne al
add eax, 0x40
movzx ecx, ax
push ecx
mov eax, ecx
push edi
mov dword [esp + 0x28], eax
call fcn.100a72d0
add esp, 0xc
test eax, eax
jne 0x1008d34f
cmp byte [esp + 0x28], 0x3a
jne 0x1008d3af
lea eax, [edi - 0x128]
push eax
push 0x19
push edi
call fcn.100887e0
mov ecx, 0x985
movzx eax, ax
add esp, 0xc
mov word [edi + 0x78], cx
mov ecx, edi
mov word [edi + 0x74], si
mov word [edi + 0x76], ax
call fcn.100a5a50
cmp dword [ebx + 0x3c], 0
je 0x1008d425
cmp dword [esp + 0x18], 0
jne 0x1008d3f1
movzx eax, word [ebx + 0x28]
mov ecx, edi
mov dword [edi + 0x76], 0x430b0003
mov word [edi + 0x74], ax
call fcn.100a5a50
push 0xb
push edi
mov esi, eax
call fcn.10088600
movzx ecx, ax
add esp, 8
mov eax, 0x88b
mov word [edi + 0x76], cx
mov word [edi + 0x78], ax
jmp 0x1008d41a
mov ecx, dword [ebp + 4]
cmp ecx, 0xfffffff2
jae 0x1008d400
mov ecx, 0xe
jmp 0x1008d402
not ecx
mov eax, dword [esp + 0x1c]
shl eax, 8
or eax, ecx
or eax, 0x80
mov word [edi + 0x78], ax
xor eax, eax
mov word [edi + 0x76], ax
mov ecx, edi
mov word [edi + 0x74], si
call fcn.100a5a50
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x30]
movzx eax, cx
mov ebp, eax
mov edx, eax
mov eax, ecx
shr eax, 0x18
and eax, 0x1f
sub eax, 0xf
cmp eax, 4
ja 0x1008d45d
mov ecx, edi
mov dword [edi + 0x76], 0x550e01d3
mov word [edi + 0x74], bp
call fcn.100a5a50
mov ecx, eax
mov dword [ebx + 0x30], ecx
movzx edx, cx
shr ecx, 0x18
mov ebp, 0x4700
and ecx, 0x1f
mov word [edi + 0x76], dx
cmp byte [esp + 0x28], 0x38
mov eax, 0x4800
cmove eax, ebp
mov ebp, dword [esp + 0x14]
or cx, ax
mov word [edi + 0x74], bp
mov word [edi + 0x78], cx
mov ecx, edi
call fcn.100a5a50
test esi, esi
jne 0x1008d4a2
movzx eax, byte [ebx + 0x33]
and eax, 0x1f
sub eax, 4
cmp eax, 8
ja 0x1008d4b8
movzx eax, word [ebx + 0x28]
mov ecx, edi
mov dword [edi + 0x76], 0x52000000
mov word [edi + 0x74], ax
call fcn.100a5a50
mov ecx, dword [ebx + 0x2c]
mov eax, ecx
and eax, 0x1f000000
cmp eax, 0x4000000
jne 0x1008d53d
movzx eax, cx
mov ecx, 0x8000
cmp ax, cx
jae 0x1008d501
mov ecx, eax
mov eax, dword [edi + 0x10]
mov edx, dword [eax + ecx*8]
xor ecx, ecx
lea eax, [edi - 0x9c]
cmp dword [eax], edx
je 0x1008d501
inc ecx
add eax, 4
cmp ecx, 5
jbe 0x1008d4e6
mov byte [edi + 0x71], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
movzx eax, word [ebx + 0x28]
mov ecx, edi
mov dword [edi + 0x76], 0x3e050008
mov word [edi + 0x74], ax
call fcn.100a5a50
xor edx, edx
mov ecx, edi
mov esi, eax
call fcn.10088040
movzx ecx, ax
mov eax, 0x4a10
mov word [edi + 0x76], cx
mov ecx, edi
mov word [edi + 0x78], ax
mov word [edi + 0x74], si
call fcn.100a5a50
mov byte [edi + 0x71], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x11
push edi
call fcn.1006e0e0
push 0x12
push edi
call fcn.1006e0e0
push 0x13
push edi
call fcn.1006e0e0
int3