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

Disassembly:
sub esp, 0x334
mov eax, dword [0x101366b4]
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 0x1009e882
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.100caa46
test eax, eax
js 0x1009f11d
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 0x1009e8d1
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 0x1009e8b7
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 0x1009f091
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 0x1009f091
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 0x1009efed
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 0x1009efe2
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.1003c9e0
test eax, eax
js 0x1009f11d
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.100aea00
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f010
mov ecx, dword [esp + 0x4c]
cmp esi, 0x3ec
je 0x1009e9d1
xor eax, eax
inc eax
cmp ecx, eax
jne 0x1009e9d3
mov eax, edi
mov dword [ebp - 8], eax
test eax, eax
je 0x1009ea50
mov eax, dword [esp + 0x2c]
inc dword [esp + 0x50]
sub eax, ebx
cmp eax, ecx
jb 0x1009f007
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.101180b0
mov eax, dword [esp + 0x58]
add esp, 0xc
add ebx, eax
lea esi, [eax + 3]
and esi, 0xfffffffc
sub esi, eax
je 0x1009ea29
push esi
push edi
push ebx
call fcn.10117f50
add esp, 0xc
add ebx, esi
cmp dword [esp + 0x40], edi
je 0x1009ea50
mov esi, dword [esp + 0x30]
test esi, esi
jne 0x1009ea50
push dword [esp + 0x70]
push dword [esp + 0x4c]
call fcn.100f393f
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 0x1009e96e
mov esi, dword [esp + 0x50]
test esi, esi
je 0x1009efd6
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 0x1009ea9d
cmp dword [eax], edi
jne 0x1009eade
push dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
push dword [esp + 0x20]
push ebp
call fcn.100f2389
test eax, eax
js 0x1009f11d
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x354], edi
je 0x1009eae4
mov ebx, dword [edx + 0x458]
test ebx, ebx
je 0x1009eae4
lea ecx, [edx + 0x468]
jmp 0x1009eaf0
mov ebp, dword [esp + 0x14]
jmp 0x1009eabb
mov ebx, dword [edx + 0x454]
lea ecx, [edx + 0x464]
mov dword [esp + 0x20], ecx
cmp dword [ecx], edi
jne 0x1009eba7
movzx eax, word [edx + 0xc]
test al, 2
je 0x1009eb44
test al, 4
mov eax, dword [esp + 0x28]
je 0x1009eb48
test dword [eax + 4], 0x100
jne 0x1009eb48
xor eax, eax
inc eax
push edi
push eax
push ebp
mov dword [esp + 0x60], eax
call fcn.100dc882
push dword [esp + 0x24]
push dword [esp + 0x20]
push ebp
call fcn.1009e507
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f01a
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.100df6ac
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
mov eax, dword [esp + 0x20]
push ebx
push dword [eax]
push dword [esp + 0x34]
push ebp
push dword [esp + 0x38]
call fcn.100e027a
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
push edi
push dword [esp + 0x24]
push dword [esp + 0x34]
call fcn.100dcfcf
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x50]
cmp dword [esp + 0x40], edi
je 0x1009ec04
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1009ec04
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.1009fcf7
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
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 0x1009ec0e
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 0x1009ec4f
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.100f2ec3
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f066
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 0x1009ec19
push 0xa
pop ebp
mov ebx, edi
sub ebp, dword [esp + 0x50]
je 0x1009eca3
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.100f2ec3
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f062
mov ecx, dword [esp + 0x20]
inc ebx
cmp ebx, ebp
jb 0x1009ec68
test byte [0x10138284], 1
je 0x1009ecba
push 3
pop eax
push eax
push 0x1000adc8
call fcn.100de107
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.100de943
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f066
mov eax, dword [esp + 0x24]
movzx edx, word [eax + 0xc]
test dl, dl
js 0x1009ed36
mov ecx, dword [eax + 0x3ec]
movsx eax, word [eax + 0x3ea]
lea esi, [ecx + eax*2]
jmp 0x1009ed2e
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 0x1009ed5f
cmp word [esp + 0x90], ax
je 0x1009ed5f
push 2
pop eax
add ecx, eax
cmp ecx, esi
jb 0x1009ed02
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.100de9b5
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x1009eef2
mov eax, dword [esp + 0x24]
or edx, 0x80
mov word [eax + 0xc], dx
jmp 0x1009ed36
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.100f2c7e
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f066
mov esi, dword [esp + 0x4c]
lea ebx, [esp + 0xa4]
mov ecx, dword [esp + 0x18]
cmp dword [ebx - 4], edi
je 0x1009eec5
cmp dword [esp + 0x48], edi
je 0x1009edd5
lea eax, [esp + 0x13c]
push eax
push dword [ebx]
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.100a1408
jmp 0x1009edf3
cmp dword [ebx + 4], esi
jne 0x1009edf1
push esi
lea eax, [esp + 0x140]
push eax
push dword [ebx]
call fcn.1011974c
add esp, 0xc
test eax, eax
je 0x1009edfb
mov eax, edi
test eax, eax
je 0x1009eec1
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 0x1009ee34
mov esi, dword [esp + 0x14]
push 4
push ebp
push dword [esp + 0x44]
push esi
call fcn.1003c9e0
test eax, eax
js 0x1009f11d
push 2
pop eax
push eax
push dword [esp + 0x40]
push esi
jmp 0x1009ee3d
push edi
push dword [esp + 0x40]
push dword [esp + 0x1c]
call fcn.1003cd20
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f062
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.1009e21f
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f04e
lea eax, [esp + 0x98]
push eax
push 4
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x48]
push dword [esp + 0x24]
call fcn.1003d2f0
mov esi, eax
mov dword [esp + 0x10], eax
test esi, esi
js 0x1009f04e
cmp dword [ebp], edi
jne 0x1009eeba
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 0x1009edad
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.100de9b5
mov esi, eax
mov dword [esp + 0x10], eax
test esi, esi
jns 0x1009ed6f
cmp esi, 0xfffff9bd
jne 0x1009f066
xor esi, esi
inc esi
cmp word [esp + 0x40], si
jne 0x1009ef29
push ebp
push dword [ebx]
push dword [esp + 0x34]
push esi
push dword [ebx]
call dword [0x1013a188]
movzx eax, ax
push eax
call fcn.100df724
cmp dword [esp + 0x54], edi
je 0x1009ef3e
push edi
push 2
pop eax
push eax
push ebp
mov dword [esp + 0x60], edi
call fcn.100dc882
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x9c]
cmp dword [ebx + 4], edi
je 0x1009efc9
mov eax, dword [ebx]
mov esi, dword [esp + 0x44]
add eax, 4
push 4
push eax
push esi
push ebp
call fcn.1003c9e0
test eax, eax
js 0x1009f11d
push 2
pop eax
push eax
push esi
push ebp
call fcn.1003cd20
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
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.1003d0e0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
push edi
push edi
push edi
push dword [esp + 0x50]
push ebp
call fcn.1003d2f0
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
mov eax, dword [esp + 0x18]
add ebx, 0x10
cmp ebx, eax
jb 0x1009ef49
jmp 0x1009efda
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 0x1009f088
mov eax, dword [ecx]
mov dword [esp + 0x34], eax
jmp 0x1009e90e
mov esi, 0x7e8
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x14]
cmp dword [esp + 0x54], edi
je 0x1009f025
push edi
push 3
pop eax
push eax
push ebp
call fcn.100dc882
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x1009f11b
mov esi, dword [esp + 0x78]
mov eax, dword [esi + edi*4]
mov edx, 0xfffd
and word [eax], dx
inc edi
cmp edi, ecx
jb 0x1009f035
mov esi, dword [esp + 0x10]
jmp 0x1009f11b
mov ebp, dword [esp + 0x14]
push 3
pop eax
push eax
push dword [esp + 0x40]
push ebp
call fcn.1003cd20
jmp 0x1009f066
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 [0x1013a188]
movzx eax, ax
push eax
call fcn.100df724
jmp 0x1009f014
mov edx, dword [esp + 0x80]
mov esi, edi
test byte [edx + 0x2c], 8
je 0x1009f111
lea ebx, [esp + 0x9c]
mov eax, ebx
cmp eax, dword [esp + 0x18]
jae 0x1009f111
mov eax, dword [ebx]
push 4
add eax, 4
push eax
push dword [esp + 0x4c]
push ebp
call fcn.1003c9e0
test eax, eax
js 0x1009f11d
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.100a7677
push edi
push edi
push dword [esp + 0x84]
push esi
call fcn.100a68a5
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
js 0x1009f014
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 0x1009f0a6
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.10117cfd
add esp, 0x334
ret 0x10