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

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xca0]
cmp eax, 0xffffffff
jne 0x1009a330
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 0xc
cmp eax, 0xfffffffe
jne 0x1009a3ac
mov al, byte [esi + 0xc9c]
test al, al
jne 0x1009a36f
mov al, byte [esi + 0xc9b]
lea ecx, [esi + 0x20]
neg al
sbb eax, eax
and eax, 0x8000
add eax, 0x8000
push eax
call fcn.10008e21
test al, al
jne 0x1009a36f
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
add esp, 0x28
ret 0xc
mov cl, byte [esi + 0xc9e]
push ecx
mov ecx, esi
call fcn.1009a2b0
test eax, eax
jne 0x1009ac91
mov dl, byte [esi + 0xc9c]
lea ecx, [esi + 0x20]
push edx
call fcn.100a5020
mov byte [esi + 0xc98], 0
mov dword [esi + 0xca0], 0
mov byte [esi + 0xc9f], 1
mov eax, dword [esi + 0xca0]
mov ebp, dword [esp + 0x3c]
test eax, eax
jle 0x1009a40a
test ebp, ebp
jbe 0x1009a406
mov edx, dword [esi + 0xca4]
dec eax
lea ecx, [esi + 0x20]
mov dword [esi + 0xca0], eax
mov edi, dword [ecx + 4]
mov eax, edi
sub eax, edx
dec eax
cmp edx, edi
jb 0x1009a3dd
add eax, dword [ecx + 0x10]
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, edi
inc edx
mov al, byte [edi + eax]
mov byte [edx + ebx - 1], al
mov eax, dword [ecx + 8]
cmp edx, eax
mov dword [ecx + 4], edx
jne 0x1009a3fb
call fcn.1006dc5d
mov eax, dword [esi + 0xca0]
dec ebp
test eax, eax
jg 0x1009a3ba
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x44]
xor edi, edi
test eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
je 0x1009a458
mov ebx, dword [esi + 0x50]
mov edi, dword [esi + 0x58]
mov eax, dword [esi + 0x60]
mov ecx, 0x20
sub ecx, ebx
sub edi, eax
shr ecx, 3
xor eax, eax
xor edx, edx
sub edi, ecx
mov ecx, dword [esi + 0x78]
sbb eax, edx
add edi, ecx
mov ecx, dword [esi + 0x6c]
adc eax, edx
mov edx, dword [esi + 0x68]
add edi, edx
adc eax, ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], eax
jmp 0x1009a458
mov edi, dword [esp + 0x30]
test ebp, ebp
ja 0x1009a468
mov al, byte [esp + 0x40]
test al, al
je 0x1009ac63
mov eax, dword [esi + 0x78]
cmp eax, 4
ja 0x1009ac8c
mov ebx, dword [esi + 0x50]
mov ecx, 0x20
shl eax, 3
sub ecx, ebx
cmp ecx, eax
jb 0x1009ac8c
mov al, byte [esi + 0xc9f]
test al, al
je 0x1009a531
mov al, byte [esi + 0xc98]
test al, al
jne 0x1009ac59
mov eax, dword [esp + 0x44]
test eax, eax
je 0x1009a4f6
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x60]
mov edx, 0x20
sub ecx, eax
sub edx, ebx
xor eax, eax
shr edx, 3
xor ebx, ebx
sub ecx, edx
mov edx, dword [esi + 0x78]
sbb eax, ebx
add ecx, edx
mov edx, dword [esi + 0x6c]
adc eax, ebx
mov ebx, dword [esi + 0x68]
add ecx, ebx
adc eax, edx
mov edx, dword [esp + 0x34]
sub ecx, edi
sbb eax, edx
xor edx, edx
cmp eax, edx
ja 0x1009ac80
jb 0x1009a4f6
cmp ecx, dword [esp + 0x44]
jae 0x1009ac80
mov ecx, esi
call fcn.10099d40
test al, al
je 0x1009ac8c
mov eax, dword [esi + 0x78]
cmp eax, 4
ja 0x1009ac8c
mov edx, dword [esi + 0x50]
mov ecx, 0x20
sub ecx, edx
lea edx, [eax*8]
cmp ecx, edx
jb 0x1009ac8c
mov byte [esi + 0xc9f], 0
mov al, byte [esi + 0xc99]
test al, al
je 0x1009a61d
mov al, byte [esp + 0x40]
test al, al
je 0x1009a559
test ebp, ebp
jne 0x1009a559
mov eax, dword [esi + 0xc90]
test eax, eax
jne 0x1009ac8c
mov eax, dword [esi + 0xc90]
test eax, eax
jbe 0x1009a60f
test ebp, ebp
jbe 0x1009a5a8
cmp dword [esi + 0x50], 0x20
je 0x1009a5a8
mov ecx, esi
call fcn.10099bd0
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x20]
lea ecx, [esi + 0x20]
mov byte [edx + ebx], al
inc edx
mov eax, dword [ecx + 8]
mov dword [ecx + 4], edx
cmp edx, eax
jne 0x1009a594
call fcn.1006dc5d
mov ebx, dword [esi + 0xc90]
dec ebx
dec ebp
mov eax, ebx
mov dword [esi + 0xc90], ebx
test eax, eax
ja 0x1009a567
mov eax, dword [esi + 0xc90]
mov dword [esp + 0x3c], ebp
test eax, eax
jbe 0x1009a60f
test ebp, ebp
jbe 0x1009a603
mov edx, dword [esi + 0x58]
mov eax, dword [esi + 0x5c]
lea ecx, [esi + 0x58]
cmp edx, eax
jb 0x1009a5ce
call fcn.100062f9
jmp 0x1009a5d3
mov al, byte [edx]
inc edx
mov dword [ecx], edx
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x20]
lea ecx, [esi + 0x20]
mov byte [ebx + edx], al
inc edx
mov eax, dword [ecx + 8]
mov dword [ecx + 4], edx
cmp edx, eax
jne 0x1009a5ef
call fcn.1006dc5d
mov ebx, dword [esi + 0xc90]
dec ebx
dec ebp
mov eax, ebx
mov dword [esi + 0xc90], ebx
test eax, eax
ja 0x1009a5b6
mov eax, dword [esi + 0xc90]
mov dword [esp + 0x3c], ebp
test eax, eax
sete al
mov byte [esi + 0xc9f], al
jmp 0x1009a458
test ebp, ebp
jbe 0x1009ab18
cmp dword [esi + 0x78], 4
ja 0x1009ac8c
cmp dword [esi + 0x50], 8
jb 0x1009a69a
lea edi, [esi + 0x58]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jb 0x1009a64e
mov ecx, edi
call fcn.100062f9
mov byte [esp + 0x1c], al
jmp 0x1009a657
mov cl, byte [eax]
inc eax
mov byte [esp + 0x1c], cl
mov dword [edi], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esi + 0x50]
and eax, 0xff
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
mov ecx, dword [esi + 0x80]
or ecx, ebx
mov dword [esi + 0x80], ecx
xor ecx, ecx
mov cl, byte [eax + 0x100fef2c]
mov eax, dword [esi + 0x54]
shl eax, 8
or ecx, eax
lea eax, [edx - 8]
cmp eax, 8
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
jae 0x1009a638
mov edi, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov ecx, 8
sub ecx, edi
shr eax, cl
mov ecx, dword [esi + 0xac]
shr eax, 9
and eax, 0x7fff
cmp eax, ecx
jae 0x1009a6e6
shr eax, 6
xor edx, edx
mov dx, word [esi + eax*2 + 0x10c]
mov ecx, edx
and ecx, 0xf
lea eax, [ecx + edi]
mov edi, dword [esi + 0x80]
shr edi, cl
mov dword [esi + 0x50], eax
shr edx, 4
mov dword [esi + 0x80], edi
jmp 0x1009a74a
mov ebx, dword [esi + 0xb0]
lea ecx, [esi + 0xb0]
cmp eax, ebx
mov edx, 0xa
jb 0x1009a70f
mov ebx, dword [ecx + 4]
add ecx, 4
inc edx
cmp eax, ebx
jae 0x1009a6fb
cmp edx, 0xf
ja 0x1009ac8c
lea ecx, [edx + edi]
mov edi, dword [esi + 0x80]
mov dword [esi + 0x50], ecx
mov ecx, edx
shr edi, cl
mov dword [esi + 0x80], edi
mov ecx, dword [esi + edx*4 + 0x84]
sub eax, ecx
mov ecx, 0xf
sub ecx, edx
shr eax, cl
mov ecx, dword [esi + edx*4 + 0xcc]
add eax, ecx
xor edx, edx
mov dx, word [esi + eax*2 + 0x50c]
cmp edx, 0x100
jae 0x1009a778
mov eax, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
lea ecx, [esi + 0x20]
mov byte [edi + eax], dl
inc eax
mov edx, dword [ecx + 8]
mov dword [ecx + 4], eax
cmp eax, edx
jne 0x1009a76e
call fcn.1006dc5d
dec ebp
mov dword [esp + 0x3c], ebp
jmp 0x1009aaed
je 0x1009aafb
cmp edx, 0x11e
jae 0x1009ac8c
mov al, byte [esi + 0xc9b]
sub edx, 0x101
test al, al
je 0x1009a7b0
xor eax, eax
xor ecx, ecx
mov al, byte [edx + 0x100e9a18]
mov cl, byte [edx + 0x100e9a58]
mov dword [esp + 0x10], eax
jmp 0x1009a7c4
xor eax, eax
xor ecx, ecx
mov al, byte [edx + 0x100e99f8]
mov cl, byte [edx + 0x100e9a38]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x50]
mov edi, ecx
cmp eax, 8
jb 0x1009a839
lea ebp, [esi + 0x58]
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
cmp eax, ecx
jb 0x1009a7e8
mov ecx, ebp
call fcn.100062f9
mov byte [esp + 0x20], al
jmp 0x1009a7f2
mov dl, byte [eax]
inc eax
mov byte [esp + 0x20], dl
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x50]
and eax, 0xff
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
mov ecx, dword [esi + 0x80]
or ecx, ebx
mov dword [esi + 0x80], ecx
xor ecx, ecx
mov cl, byte [eax + 0x100fef2c]
mov eax, dword [esi + 0x54]
shl eax, 8
or ecx, eax
lea eax, [edx - 8]
cmp eax, 8
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
jae 0x1009a7d1
mov ebp, dword [esp + 0x3c]
mov edx, dword [esi + 0x80]
mov eax, 1
mov ecx, edi
mov ebx, dword [esi + 0x50]
shl eax, cl
add ebx, edi
mov dword [esi + 0x50], ebx
dec eax
and eax, edx
shr edx, cl
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax + 3]
cmp eax, ebp
mov dword [esi + 0x80], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
jbe 0x1009a873
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x50], 8
jb 0x1009a8de
lea edi, [esi + 0x58]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jb 0x1009a892
mov ecx, edi
call fcn.100062f9
mov byte [esp + 0x24], al
jmp 0x1009a89b
mov dl, byte [eax]
inc eax
mov byte [esp + 0x24], dl
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x50]
and eax, 0xff
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
mov ecx, dword [esi + 0x80]
or ecx, ebx
mov dword [esi + 0x80], ecx
xor ecx, ecx
mov cl, byte [eax + 0x100fef2c]
mov eax, dword [esi + 0x54]
shl eax, 8
or ecx, eax
lea eax, [edx - 8]
cmp eax, 8
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
jae 0x1009a87c
mov edi, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov ecx, 8
sub ecx, edi
shr eax, cl
mov ecx, dword [esi + 0x770]
shr eax, 9
and eax, 0x7fff
cmp eax, ecx
jae 0x1009a92b
shr eax, 6
xor edx, edx
mov dx, word [esi + eax*2 + 0x7d0]
mov ecx, edx
and ecx, 0xf
add edi, ecx
mov dword [esi + 0x50], edi
mov edi, dword [esi + 0x80]
shr edi, cl
shr edx, 4
mov dword [esi + 0x80], edi
mov edi, edx
jmp 0x1009a98f
mov ebx, dword [esi + 0x774]
lea ecx, [esi + 0x774]
cmp eax, ebx
mov edx, 0xa
jb 0x1009a955
mov ebx, dword [ecx + 4]
add ecx, 4
inc edx
cmp eax, ebx
jae 0x1009a940
cmp edx, 0xf
jbe 0x1009a955
or edi, 0xffffffff
jmp 0x1009a98f
add edi, edx
mov ecx, edx
mov dword [esi + 0x50], edi
mov edi, dword [esi + 0x80]
shr edi, cl
mov ecx, 0xf
sub ecx, edx
mov dword [esi + 0x80], edi
mov ebp, dword [esi + edx*4 + 0x748]
sub eax, ebp
shr eax, cl
mov ecx, dword [esi + edx*4 + 0x790]
add eax, ecx
xor edi, edi
mov di, word [esi + eax*2 + 0xbd0]
cmp edi, dword [esi + 0xc94]
jae 0x1009ac8c
mov eax, dword [esi + 0x50]
xor ecx, ecx
mov cl, byte [edi + 0x100e9af8]
cmp eax, 8
mov ebp, ecx
jb 0x1009aa11
mov eax, dword [esi + 0x58]
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 0x58]
cmp eax, edx
jb 0x1009a9c5
call fcn.100062f9
mov byte [esp + 0x28], al
jmp 0x1009a9ce
mov dl, byte [eax]
inc eax
mov byte [esp + 0x28], dl
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x50]
and eax, 0xff
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
mov ecx, dword [esi + 0x80]
or ecx, ebx
mov dword [esi + 0x80], ecx
xor ecx, ecx
mov cl, byte [eax + 0x100fef2c]
mov eax, dword [esi + 0x54]
shl eax, 8
or ecx, eax
lea eax, [edx - 8]
cmp eax, 8
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
jae 0x1009a9ad
mov edx, dword [esi + 0x80]
mov eax, 1
mov ecx, ebp
shl eax, cl
mov ecx, dword [esi + 0x50]
add ecx, ebp
mov dword [esi + 0x50], ecx
mov ecx, ebp
dec eax
and eax, edx
shr edx, cl
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esi + 0x80], edx
mov ebx, dword [edi*4 + 0x100e9a78]
lea edi, [esi + 0x20]
add ebx, eax
mov eax, dword [edi + 4]
mov ebp, eax
sub ebp, ebx
dec ebp
cmp ebx, eax
jb 0x1009aa6d
mov cl, byte [edi + 0x24]
test cl, cl
je 0x1009ac8c
mov ecx, dword [edi + 0x10]
cmp ebx, ecx
jae 0x1009ac8c
add ebp, ecx
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x18]
sub ecx, eax
cmp ecx, edx
jbe 0x1009aaa2
mov ecx, dword [edi + 0x10]
sub ecx, ebp
cmp ecx, edx
jbe 0x1009aaa2
mov ecx, dword [edi]
add ebp, ecx
add ecx, eax
add eax, edx
mov dword [edi + 4], eax
mov edi, dword [esp + 0x14]
mov al, byte [ebp]
mov byte [ecx], al
inc ecx
inc ebp
dec edi
jne 0x1009aa92
mov dword [esp + 0x14], edi
jmp 0x1009aad7
cmp ebp, dword [edi + 0x10]
jne 0x1009aaa9
xor ebp, ebp
mov ecx, dword [edi]
mov eax, dword [edi + 4]
inc eax
mov dl, byte [ecx + ebp]
inc ebp
mov byte [ecx + eax - 1], dl
mov ecx, dword [edi + 8]
cmp eax, ecx
mov dword [edi + 4], eax
jne 0x1009aac8
mov ecx, edi
call fcn.1006dc5d
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jne 0x1009aaa2
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], eax
jne 0x1009ab04
mov ebp, dword [esp + 0x3c]
test ebp, ebp
ja 0x1009a625
jmp 0x1009ab18
mov byte [esi + 0xc9f], 1
jmp 0x1009ab18
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
mov dword [esi + 0xca0], eax
mov dword [esi + 0xca4], ebx
mov al, byte [esp + 0x40]
test al, al
je 0x1009a454
test ebp, ebp
jne 0x1009a454
cmp dword [esi + 0x50], 8
jb 0x1009ab97
lea edi, [esi + 0x58]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
cmp eax, ecx
jb 0x1009ab4b
mov ecx, edi
call fcn.100062f9
mov byte [esp + 0x2c], al
jmp 0x1009ab54
mov cl, byte [eax]
inc eax
mov byte [esp + 0x2c], cl
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esi + 0x50]
and eax, 0xff
mov ecx, 0x20
sub ecx, edx
mov ebx, eax
shl ebx, cl
mov ecx, dword [esi + 0x80]
or ecx, ebx
mov dword [esi + 0x80], ecx
xor ecx, ecx
mov cl, byte [eax + 0x100fef2c]
mov eax, dword [esi + 0x54]
shl eax, 8
or ecx, eax
lea eax, [edx - 8]
cmp eax, 8
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], eax
jae 0x1009ab35
mov edi, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
mov ecx, 8
sub ecx, edi
shr eax, cl
mov ecx, dword [esi + 0xac]
shr eax, 9
and eax, 0x7fff
cmp eax, ecx
jae 0x1009abe2
shr eax, 6
xor edx, edx
mov dx, word [esi + eax*2 + 0x10c]
mov ecx, edx
and ecx, 0xf
add edi, ecx
mov dword [esi + 0x50], edi
mov edi, dword [esi + 0x80]
shr edi, cl
shr edx, 4
mov dword [esi + 0x80], edi
jmp 0x1009ac45
mov ebx, dword [esi + 0xb0]
lea ecx, [esi + 0xb0]
cmp eax, ebx
mov edx, 0xa
jb 0x1009ac0b
mov ebx, dword [ecx + 4]
add ecx, 4
inc edx
cmp eax, ebx
jae 0x1009abf7
cmp edx, 0xf
ja 0x1009ac8c
add edi, edx
mov ecx, edx
mov dword [esi + 0x50], edi
mov edi, dword [esi + 0x80]
shr edi, cl
mov dword [esi + 0x80], edi
mov ecx, dword [esi + edx*4 + 0x84]
sub eax, ecx
mov ecx, 0xf
sub ecx, edx
shr eax, cl
mov ecx, dword [esi + edx*4 + 0xcc]
add eax, ecx
xor edx, edx
mov dx, word [esi + eax*2 + 0x50c]
cmp edx, 0x100
jne 0x1009ac8c
mov byte [esi + 0xc9f], 1
jmp 0x1009a454
mov dword [esi + 0xca0], 0xffffffff
mov eax, dword [esi + 0x78]
cmp eax, 4
ja 0x1009ac8c
mov edi, dword [esi + 0x50]
mov edx, 0x20
lea ecx, [eax*8]
sub edx, edi
cmp edx, ecx
jb 0x1009ac8c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0xc