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

Disassembly:
mov eax, 0x1021adfc
call fcn.10210210
sub esp, 0x44
push ebx
push ebp
push edi
mov dword [esp + 0x28], ecx
mov ebp, dword [esp + 0x68]
and dword [esp + 0x58], 0
mov eax, dword [ebp + 0xcc]
test eax, eax
je 0x1009863e
mov eax, dword [eax - 4]
mov dword [esp + 0x10], eax
jmp 0x10098643
and dword [esp + 0x10], 0
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0x30]
mov eax, dword [ebp]
xor ebx, ebx
push edi
push ecx
mov ecx, ebp
mov dword [esp + 0x70], ebx
call dword [eax + 0x480]
mov eax, dword [esp + 0x3c]
mov ecx, ebp
sub eax, dword [esp + 0x34]
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
call dword [eax + 0x49c]
mov ecx, dword [ebp + 0xec]
test ecx, ecx
je 0x10098693
push ecx
call fcn.100c9d51
xor eax, eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x10], eax
jle 0x100987b0
push esi
mov eax, dword [ebp + 0xcc]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x1009878e
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x100986cf
mov eax, dword [0x102b7738]
jmp 0x100986e2
cmp eax, dword [0x102b7738]
jne 0x100986e2
push 0
push ecx
push edi
mov ecx, ebx
call fcn.10079533
and dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
push eax
call fcn.1000fd99
mov byte [esp + 0x5c], 1
mov ecx, ebx
mov eax, dword [ebx]
push edi
call dword [eax + 0x3e4]
mov esi, dword [esp + 0x20]
test eax, eax
jne 0x1009872d
mov eax, dword [esi + 0x490]
cmp eax, 0x80000000
je 0x1009871b
cmp eax, 3
je 0x1009872d
mov byte [esp + 0x5c], 0
test esi, esi
je 0x1009878e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x1009878e
push dword [esp + 0x28]
mov eax, dword [ebx]
mov ecx, ebx
push dword [esp + 0x28]
push edi
call dword [eax + 0x11c]
test byte [ebx + 0xe0], 0x10
mov ecx, ebx
je 0x10098840
mov eax, dword [ebx]
push edi
call dword [eax + 0x27c]
mov eax, dword [esp + 0x2c]
mov ecx, ebx
mov edi, dword [ebx]
push dword [eax + 8]
push dword [esp + 0x6c]
call dword [edi + 0x12c]
push eax
push dword [esp + 0x6c]
mov ecx, ebx
call dword [edi + 0x1c4]
mov byte [esp + 0x5c], 0
test esi, esi
je 0x1009878a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
inc eax
mov ecx, eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jl 0x100986b0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
pop esi
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xb0], eax
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0xb4], edx
mov eax, dword [eax + 0x4b0]
cmp eax, 0x80000000
je 0x100987dd
test eax, eax
jne 0x100987eb
cmp dword [ebp + 0x8c], ebx
jge 0x100987eb
mov dword [ebp + 0x8c], ebx
mov eax, dword [ebp]
lea ecx, [esp + 0x40]
push edi
push ecx
mov ecx, ebp
call dword [eax + 0x480]
pop edi
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 4]
mov ecx, dword [eax + 8]
inc edx
sub ecx, dword [eax]
inc ecx
mov dword [ebp + 0xa4], edx
mov dword [ebp + 0xa0], ecx
or dword [ebp + 0xe8], 1
or dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x68]
pop ebp
pop ebx
test ecx, ecx
je 0x10098831
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
leave
ret 0xc
call fcn.1001741e
test al, al
je 0x1009886a
mov eax, dword [ebx + 0x5c]
add eax, dword [ebx + 0x4c]
add eax, dword [ebx + 0x3c]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x60]
add eax, dword [ebx + 0x50]
add eax, dword [ebx + 0x40]
add eax, dword [esp + 0x6c]
mov dword [ebx + 0x7c], eax
jmp 0x1009871b
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x318]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov edx, dword [ebx]
cmovg ecx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
mov ecx, ebx
push edi
call dword [edx + 0x324]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
cmovg ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ecx
cmp eax, dword [ebp + 0x88]
jle 0x100988b7
mov ecx, dword [esp + 0x10]
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0x60]
add eax, dword [ebx + 0x40]
add eax, dword [ebx + 0x50]
mov dword [ebx + 0x7c], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 0x4a0]
test eax, eax
jne 0x100988e7
cmp dword [esi + 0x44], 0xff
je 0x1009894f
cmp dword [esi + 0x44], 1
jne 0x1009894f
push 3
pop eax
test eax, eax
je 0x1009894f
mov edx, dword [esp + 0x24]
sub edx, dword [ebx + 0x88]
sub edx, dword [ebx + 0x64]
sub edx, dword [ebx + 0x54]
sub edx, dword [ebx + 0x44]
sub edx, dword [ebx + 0x3c]
sub edx, dword [ebx + 0x4c]
sub edx, dword [ebx + 0x5c]
jns 0x10098919
mov ecx, dword [ecx + 0x4ac]
cmp ecx, 0x80000000
je 0x10098917
test ecx, ecx
jne 0x10098919
xor edx, edx
cmp eax, 1
jne 0x10098929
mov eax, dword [ebx + 0x4c]
add eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x5c]
jmp 0x10098958
cmp eax, 3
jne 0x1009893b
mov eax, dword [ebx + 0x4c]
add eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x5c]
add eax, edx
jmp 0x10098958
cmp eax, 2
jne 0x1009895b
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x4c]
jmp 0x10098924
mov eax, dword [ebx + 0x5c]
add eax, dword [ebx + 0x4c]
add eax, dword [ebx + 0x3c]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx]
mov ecx, ebx
push edi
call dword [eax + 0x27c]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push edi
call dword [eax + 0x12c]
mov ecx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x58]
add ecx, dword [ebx + 0x48]
add ecx, dword [ebx + 0x60]
add ecx, dword [ebx + 0x40]
add ecx, dword [ebx + 0x50]
add eax, ecx
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x6c], eax
cmovg eax, dword [esp + 0x6c]
mov ebx, eax
mov dword [esp + 0x6c], ebx
test esi, esi
je 0x10098792
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x10098792