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

Disassembly:
sub esp, 0x334
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x330], eax
mov ecx, dword [esp + 0x338]
mov eax, dword [esp + 0x33c]
or dword [esp + 0x64], 0xffffffff
mov edx, dword [esp + 0x340]
push ebx
lea ebx, [ecx + 0x18]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0xec]
mov dword [esp + 0x78], eax
movzx eax, word [ebx + 0x74]
cwde
push ebp
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x8c], eax
push esi
mov esi, dword [ebx + 0x48]
imul eax, eax, 0x24
mov dword [esp + 0x7c], esi
add esi, 0x54
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x6c], edx
add eax, esi
mov dword [esp + 0x28], ebx
mov esi, edi
mov dword [esp + 0x7c], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x70], edi
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
cmp dword [ebx + 0xf4], edi
jne 0x1009dc61
mov eax, dword [esp + 0x84]
mov edx, 0x800
mov word [eax + 0xe], dx
lea eax, [esp + 0x60]
push eax
push 1
push edx
push ecx
call fcn.100c9d55
test eax, eax
js 0x1009e4fc
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
mov dword [ebx + 0xf4], eax
mov eax, edx
mov dword [esp + 0x90], 2
shl eax, 4
lea ecx, [esp + 0x9c]
add eax, ecx
mov ecx, edi
mov dword [esp + 0x18], eax
test edx, edx
je 0x1009dcb0
mov ebp, dword [esp + 0x6c]
lea edx, [esp + 0x9c]
mov ebx, dword [esp + 0x78]
push 2
pop esi
mov eax, dword [ebx + ecx*4]
mov dword [edx], eax
lea edx, [edx + 0x10]
or word [eax], si
inc ecx
cmp ecx, ebp
jb 0x1009dc96
mov ebp, dword [esp + 0x14]
mov esi, edi
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x80]
mov eax, dword [edx + 0x4ac]
test eax, eax
jle 0x1009e470
mov ecx, dword [edx + 0x4a8]
mov dword [esp + 0x64], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
cmp ecx, dword [esp + 0x5c]
jae 0x1009e470
mov edx, dword [esp + 0x5c]
xor esi, esi
inc esi
cmp dword [eax], 2
mov dword [esp + 0x48], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], esi
jne 0x1009e3cc
mov eax, dword [eax + 0xcc]
mov ebx, dword [ebx + 0xf4]
inc dword [esp + 0x74]
mov dword [esp + 0x24], eax
movzx eax, word [eax + 0xc]
and eax, esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
lea esi, [esp + 0x9c]
mov eax, dword [esp + 0x84]
movzx eax, word [eax + 0xe]
add eax, ebx
mov dword [esp + 0x2c], eax
cmp esi, dword [esp + 0x18]
jae 0x1009e3c1
lea ebp, [esp + 0xa8]
mov eax, dword [ebp - 0xc]
mov esi, dword [esp + 0x14]
add eax, 4
push 4
push eax
push dword [esp + 0x4c]
push esi
call fcn.1003c5e0
test eax, eax
js 0x1009e4fc
push edi
lea eax, [esp + 0x50]
push eax
push 0x202
lea eax, [esp + 0x148]
push eax
mov eax, dword [esp + 0x44]
push dword [eax + 0xe0]
push esi
call fcn.100adddf
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3ef
mov ecx, dword [esp + 0x4c]
cmp esi, 0x3ec
je 0x1009ddb0
xor eax, eax
inc eax
cmp ecx, eax
jne 0x1009ddb2
mov eax, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1009de2f
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x50]
sub eax, ebx
cmp eax, ecx
jb 0x1009e3e6
push ecx
lea eax, [esp + 0x140]
mov dword [ebp], ecx
push eax
push ebx
mov dword [esp + 0x7c], ecx
mov dword [ebp - 4], ebx
mov dword [esp + 0x54], ebx
call fcn.10117410
mov eax, dword [esp + 0x58]
add esp, 0xc
add ebx, eax
lea esi, [eax + 3]
and esi, 0xfffffffc
sub esi, eax
je 0x1009de08
push esi
push edi
push ebx
call fcn.101172b0
add esp, 0xc
add ebx, esi
cmp dword [esp + 0x40], edi
je 0x1009de2f
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x1009de2f
push dword [esp + 0x70]
push dword [esp + 0x4c]
call fcn.100f2c4e
test eax, eax
push 1
pop eax
cmovne esi, eax
mov dword [esp + 0x30], esi
add ebp, 0x10
lea eax, [ebp - 0xc]
cmp eax, dword [esp + 0x18]
jb 0x1009dd4d
mov esi, dword [esp + 0x50]
test esi, esi
je 0x1009e3b5
mov eax, dword [esp + 0x94]
mov ecx, 0xfffe
mov edx, dword [esp + 0x24]
shl eax, 5
add eax, 0x24
add eax, edx
mov dword [esp + 0x38], eax
and word [eax + 0x14], cx
mov eax, dword [eax + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
test eax, eax
je 0x1009de7c
cmp dword [eax], edi
jne 0x1009debd
push dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
push dword [esp + 0x20]
push ebp
call fcn.100f1698
test eax, eax
js 0x1009e4fc
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x354], edi
je 0x1009dec3
mov ebx, dword [edx + 0x458]
test ebx, ebx
je 0x1009dec3
lea ecx, [edx + 0x468]
jmp 0x1009decf
mov ebp, dword [esp + 0x14]
jmp 0x1009de9a
mov ebx, dword [edx + 0x454]
lea ecx, [edx + 0x464]
mov dword [esp + 0x20], ecx
cmp dword [ecx], edi
jne 0x1009df86
movzx eax, word [edx + 0xc]
test al, 2
je 0x1009df23
test al, 4
mov eax, dword [esp + 0x28]
je 0x1009df27
test dword [eax + 4], 0x100
jne 0x1009df27
xor eax, eax
inc eax
push edi
push eax
push ebp
mov dword [esp + 0x60], eax
call fcn.100dbb91
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.1009d8e6
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f9
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
push dword [eax + 0x10c]
push dword [esp + 0x358]
push ecx
push dword [esp + 0x38]
push ebp
call fcn.100de9bb
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
mov eax, dword [esp + 0x20]
push ebx
push dword [eax]
push dword [esp + 0x34]
push ebp
push dword [esp + 0x38]
call fcn.100df589
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
push edi
push dword [esp + 0x24]
push dword [esp + 0x34]
call fcn.100dc2de
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x40], edi
je 0x1009dfe3
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1009dfe3
push 0xa
pop eax
sub eax, esi
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa4]
push eax
push ebx
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x40]
push dword [esp + 0x34]
push ebp
call fcn.1009f0d6
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
xor eax, eax
lea ecx, [esp + 0x88]
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], eax
jmp 0x1009dfed
mov dword [esp + 0x40], edi
mov eax, edi
mov dword [esp + 0x30], edi
mov edx, dword [esp + 0x18]
lea ebx, [esp + 0xa8]
cmp dword [ebx - 8], edi
je 0x1009e02e
push eax
push dword [ebx]
lea eax, [esp + 0x68]
push dword [ebx - 4]
push eax
push dword [ecx]
push dword [esp + 0x4c]
push dword [esp + 0x34]
push ebp
call fcn.100f21d2
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e445
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add ebx, 0x10
lea eax, [ebx - 0xc]
cmp eax, edx
mov eax, dword [esp + 0x30]
jb 0x1009dff8
push 0xa
pop ebp
mov ebx, edi
sub ebp, dword [esp + 0x50]
je 0x1009e082
push dword [esp + 0x30]
lea eax, [esp + 0x64]
push dword [esp + 0x74]
push dword [esp + 0x50]
push eax
push dword [ecx]
push dword [esp + 0x4c]
push dword [esp + 0x34]
push dword [esp + 0x30]
call fcn.100f21d2
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e441
mov ecx, dword [esp + 0x20]
inc ebx
cmp ebx, ebp
jb 0x1009e047
test byte [0x10137244], 1
je 0x1009e099
push 3
pop eax
push eax
push 0x1000ad38
call fcn.100dd416
mov ebx, dword [esp + 0x20]
xor eax, eax
mov ebp, dword [esp + 0x14]
inc eax
push eax
push dword [ebx]
push dword [esp + 0x40]
push dword [esp + 0x28]
push ebp
call fcn.100ddc52
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e445
mov eax, dword [esp + 0x24]
movzx edx, word [eax + 0xc]
test dl, dl
js 0x1009e115
mov ecx, dword [eax + 0x3ec]
movsx eax, word [eax + 0x3ea]
lea esi, [ecx + eax*2]
jmp 0x1009e10d
movsx eax, word [ecx]
mov ebp, dword [esp + 0x24]
imul eax, eax, 0x18
push 3
add eax, dword [ebp + 0x10]
pop ebp
movzx eax, word [eax + 0x10]
cmp bp, ax
mov ebp, dword [esp + 0x14]
je 0x1009e13e
cmp word [esp + 0x90], ax
je 0x1009e13e
push 2
pop eax
add ecx, eax
cmp ecx, esi
jb 0x1009e0e1
mov eax, dword [esp + 0x24]
movzx eax, word [eax + 0xc]
push edi
push dword [ebx]
and eax, 0x80
push dword [esp + 0x40]
mov dword [esp + 0x54], eax
push dword [esp + 0x28]
push ebp
call fcn.100ddcc4
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x1009e2d1
mov eax, dword [esp + 0x24]
or edx, 0x80
mov word [eax + 0xc], dx
jmp 0x1009e115
push edi
lea eax, [esp + 0x50]
push eax
push 0x202
lea eax, [esp + 0x148]
push eax
push dword [esp + 0x48]
push dword [esp + 0x30]
push ebp
call fcn.100f1f8d
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e445
mov esi, dword [esp + 0x4c]
lea ebx, [esp + 0xa4]
mov ecx, dword [esp + 0x18]
cmp dword [ebx - 4], edi
je 0x1009e2a4
cmp dword [esp + 0x48], edi
je 0x1009e1b4
lea eax, [esp + 0x13c]
push eax
push dword [ebx]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.100a07e7
jmp 0x1009e1d2
cmp dword [ebx + 4], esi
jne 0x1009e1d0
push esi
lea eax, [esp + 0x140]
push eax
push dword [ebx]
call fcn.10118aac
add esp, 0xc
test eax, eax
je 0x1009e1da
mov eax, edi
test eax, eax
je 0x1009e2a0
mov eax, dword [esp + 0x74]
movsx ebp, ax
mov eax, dword [ebx - 8]
add ebp, 2
lea ebp, [eax + ebp*4]
cmp dword [ebp], edi
je 0x1009e213
mov esi, dword [esp + 0x14]
push 4
push ebp
push dword [esp + 0x44]
push esi
call fcn.1003c5e0
test eax, eax
js 0x1009e4fc
push 2
pop eax
push eax
push dword [esp + 0x40]
push esi
jmp 0x1009e21c
push edi
push dword [esp + 0x40]
push dword [esp + 0x1c]
call fcn.1003c920
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e441
mov ecx, dword [esp + 0x24]
movsx eax, word [ecx + 0x14]
push eax
push dword [ecx + 0x18]
mov eax, dword [esp + 0x40]
push dword [esp + 0x44]
push dword [eax + 4]
push dword [esp + 0x24]
call fcn.1009d5fe
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e42d
lea eax, [esp + 0x98]
push eax
push 4
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x48]
push dword [esp + 0x24]
call fcn.1003cef0
mov esi, eax
mov dword [esp + 0x10], eax
test esi, esi
js 0x1009e42d
cmp dword [ebp], edi
jne 0x1009e299
mov eax, dword [esp + 0x8c]
mov dword [ebp], eax
mov esi, dword [esp + 0x4c]
mov dword [ebx - 4], edi
mov ecx, dword [esp + 0x18]
add ebx, 0x10
lea eax, [ebx - 8]
cmp eax, ecx
jb 0x1009e18c
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push edi
push dword [ebx]
push dword [esp + 0x40]
push dword [esp + 0x28]
push ebp
call fcn.100ddcc4
mov esi, eax
mov dword [esp + 0x10], eax
test esi, esi
jns 0x1009e14e
cmp esi, 0xfffff9bd
jne 0x1009e445
xor esi, esi
inc esi
cmp word [esp + 0x40], si
jne 0x1009e308
push ebp
push dword [ebx]
push dword [esp + 0x34]
push esi
push dword [ebx]
call dword [0x10139148]
movzx eax, ax
push eax
call fcn.100dea33
cmp dword [esp + 0x54], edi
je 0x1009e31d
push edi
push 2
pop eax
push eax
push ebp
mov dword [esp + 0x60], edi
call fcn.100dbb91
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x9c]
cmp dword [ebx + 4], edi
je 0x1009e3a8
mov eax, dword [ebx]
mov esi, dword [esp + 0x44]
add eax, 4
push 4
push eax
push esi
push ebp
call fcn.1003c5e0
test eax, eax
js 0x1009e4fc
push 2
pop eax
push eax
push esi
push ebp
call fcn.1003c920
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
push edi
xor eax, eax
push edi
inc eax
push eax
lea eax, [esp + 0x77]
push eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xe0]
push dword [eax + 0x28]
push dword [esp + 0x58]
push ebp
call fcn.1003cce0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
push edi
push edi
push edi
push dword [esp + 0x50]
push ebp
call fcn.1003cef0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
mov eax, dword [esp + 0x18]
add ebx, 0x10
cmp ebx, eax
jb 0x1009e328
jmp 0x1009e3b9
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x28]
xor esi, esi
mov eax, dword [esp + 0x34]
inc esi
add ecx, 4
mov dword [esp + 0x64], ecx
cmp ecx, edx
jae 0x1009e467
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
jmp 0x1009dced
mov esi, 0x7e8
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x54], edi
je 0x1009e404
push edi
push 3
pop eax
push eax
push ebp
call fcn.100dbb91
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x1009e4fa
mov esi, dword [esp + 0x78]
mov eax, dword [esi + edi*4]
mov edx, 0xfffd
and word [eax], dx
inc edi
cmp edi, ecx
jb 0x1009e414
mov esi, dword [esp + 0x10]
jmp 0x1009e4fa
mov ebp, dword [esp + 0x14]
push 3
pop eax
push eax
push dword [esp + 0x40]
push ebp
call fcn.1003c920
jmp 0x1009e445
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push ebp
push dword [eax]
push dword [esp + 0x34]
push dword [esp + 0x4c]
push dword [eax]
call dword [0x10139148]
movzx eax, ax
push eax
call fcn.100dea33
jmp 0x1009e3f3
mov edx, dword [esp + 0x80]
mov esi, edi
test byte [edx + 0x2c], 8
je 0x1009e4f0
lea ebx, [esp + 0x9c]
mov eax, ebx
cmp eax, dword [esp + 0x18]
jae 0x1009e4f0
mov eax, dword [ebx]
push 4
add eax, 4
push eax
push dword [esp + 0x4c]
push ebp
call fcn.1003c5e0
test eax, eax
js 0x1009e4fc
mov eax, dword [esp + 0x7c]
mov esi, dword [esp + 0x1c]
push 2
pop ecx
push eax
push esi
mov dword [eax + 0xc], ecx
call fcn.100a6a56
push edi
push edi
push dword [esp + 0x84]
push esi
call fcn.100a5c84
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009e3f3
mov eax, dword [esp + 0x58]
cmp esi, 0x64a
mov dword [esp + 0x58], eax
mov esi, eax
push 1
pop eax
cmove esi, eax
add ebx, 0x10
mov dword [esp + 0x58], esi
cmp ebx, dword [esp + 0x18]
jb 0x1009e485
neg esi
sbb esi, esi
and esi, 0x64a
mov eax, esi
mov ecx, dword [esp + 0x340]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x334
ret 0x10