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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
cmp word [ebp + 0x10], 0
mov eax, ecx
mov dword [esp + 0x20], eax
xorps xmm0, xmm0
push esi
push edi
mov eax, dword [eax]
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], 0
movlpd qword [esp + 0x90], xmm0
mov eax, dword [eax]
mov dword [esp + 0x84], eax
je 0x1009e5a8
test byte [eax + 0x40], 0x80
jne 0x1009ee00
movzx eax, word [edx]
mov dword [esp + 0x9c], eax
cmp eax, 0x3f
ja 0x1009ee00
movzx edx, ax
xor esi, esi
xor edi, edi
movlpd qword [esp + 0x88], xmm0
mov eax, edx
movlpd qword [esp + 0x58], xmm0
bts esi, eax
mov dword [esp + 0x38], edx
cmp eax, 0x20
mov dword [esp + 0x44], 0
mov cl, 1
cmovae edi, esi
mov dword [esp + 0x20], ecx
xor esi, edi
cmp eax, 0x40
mov eax, dword [esp + 0x8c]
cmovae edi, esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x88]
add esi, 0xffffffff
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x5c]
adc edi, 0xffffffff
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x90]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x94]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x74], eax
cmp edi, dword [esp + 0x98]
ja 0x1009ed7e
jb 0x1009e65e
mov eax, dword [esp + 0x54]
cmp esi, eax
jae 0x1009ed84
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x44], eax
jg 0x1009ed7e
mov edx, dword [esp + 0x44]
test edx, edx
jle 0x1009e696
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x74]
or edi, dword [edx + 8]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x78]
or edi, dword [edx + 0xc]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x14]
cmp edx, eax
jge 0x1009e6a5
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4]
jmp 0x1009e6a8
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x34], eax
test edx, 0x400
jne 0x1009ed74
movzx eax, byte [eax + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x28]
shl ecx, 4
mov eax, dword [eax + 4]
mov eax, dword [ecx + eax + 0x38]
mov dword [esp + 0x80], eax
xor eax, eax
mov dword [esp + 0x48], eax
cmp dword [esp + 0x38], eax
jbe 0x1009e83e
xor esi, esi
mov dword [esp + 0x24], esi
nop dword [eax]
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x58], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x2c], edx
and eax, edi
or ecx, eax
jne 0x1009e819
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov esi, dword [esi + eax]
test esi, esi
je 0x1009e752
nop dword [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x1009e752
test eax, 0x40000
je 0x1009e74b
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov esi, dword [eax]
jmp 0x1009e74e
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x1009e730
cmp byte [esi], 0x98
jne 0x1009e819
mov edx, dword [esp + 0x80]
cmp dword [esi + 0x1c], edx
jne 0x1009e819
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
not eax
push 0
push 0x182
not ecx
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push eax
add ecx, 0x148
call fcn.1009ad80
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1009e815
test byte [edi + 0x12], 0x82
je 0x1009e7fb
cmp word [esi + 0x20], 0
jl 0x1009e7fb
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + edx]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
call fcn.10065c50
test eax, eax
jne 0x1009e7d1
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x28]
mov edx, dword [edi]
mov ecx, dword [eax]
call fcn.10065c50
test eax, eax
jne 0x1009e7ee
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov ecx, esi
call fcn.100367a0
test eax, eax
jne 0x1009e815
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
or eax, dword [esp + 0x58]
or edi, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jmp 0x1009e819
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
add dword [esp + 0x24], 0x18
inc eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x38]
jl 0x1009e6f0
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x24]
jmp 0x1009e842
mov eax, dword [esp + 0x34]
test edx, 0x1000
jne 0x1009eb9b
test edx, 0x100
je 0x1009e869
mov edx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x58], edi
lea eax, [edi + 1]
jmp 0x1009e899
mov edi, dword [eax + 0x1c]
mov dword [esp + 0x64], edi
test edi, edi
je 0x1009ee00
test byte [edi + 0x38], 4
jne 0x1009ee00
cmp byte [edi + 0x36], 0
movzx eax, word [edi + 0x32]
setne dl
mov dword [esp + 0x58], eax
movzx eax, word [edi + 0x34]
mov dword [esp + 0x20], edx
movzx eax, ax
xor cl, cl
xor esi, esi
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x90], eax
test eax, eax
je 0x1009eb9b
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0x18]
cmp esi, ecx
jge 0x1009e904
cmp word [eax + 0x2a], 0
jne 0x1009e904
mov eax, dword [eax + 0x30]
mov eax, dword [eax + esi*4]
movzx eax, word [eax + 0x12]
test eax, 0x182
je 0x1009e904
test eax, 0x100
mov ecx, 0
movzx eax, dl
cmove ecx, eax
mov dl, cl
mov dword [esp + 0x20], edx
jmp 0x1009eb7b
test edi, edi
je 0x1009e92a
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x24], edx
mov al, byte [esi + eax]
mov byte [esp + 0x13], al
mov eax, dword [edi + 0xc]
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x1009e936
jmp 0x1009e92f
mov byte [esp + 0x13], 0
or edx, 0xffffffff
mov dword [esp + 0x24], edx
cmp byte [esp + 0x20], 0
je 0x1009e964
test edx, edx
js 0x1009e964
cmp esi, ecx
jl 0x1009e964
mov eax, dword [edi + 0xc]
mov ecx, edx
mov edx, dword [esp + 0x20]
add ecx, ecx
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x20], edx
xor esi, esi
mov dl, 1
mov dword [esp + 0x6c], esi
xor edi, edi
nop
cmp esi, dword [esp + 0x38]
jge 0x1009eab5
mov eax, esi
xor ecx, ecx
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
mov dword [esp + 0x70], esi
cmp eax, 0x40
mov dword [esp + 0x88], ecx
mov eax, esi
mov esi, dword [esp + 0x6c]
cmovae eax, ecx
and ecx, dword [esp + 0x18]
mov dword [esp + 0x70], eax
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x1009eaa5
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 4]
mov ecx, dword [edi + ecx]
test ecx, ecx
je 0x1009e9e6
mov eax, dword [ecx + 4]
test eax, 0x1000
je 0x1009e9e6
test eax, 0x40000
je 0x1009e9df
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
jmp 0x1009e9e2
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x1009e9c4
mov eax, dword [ebp + 0xc]
and eax, 0x300
neg eax
sbb al, al
and dl, al
cmp dword [esp + 0x24], 0xffffffff
mov al, dl
mov byte [esp + 0x33], al
jl 0x1009ea2a
cmp byte [ecx], 0x98
jne 0x1009eaa5
mov esi, dword [esp + 0x80]
cmp dword [ecx + 0x1c], esi
mov esi, dword [esp + 0x6c]
jne 0x1009eaa5
movsx eax, word [ecx + 0x20]
cmp eax, dword [esp + 0x24]
jne 0x1009eaa5
jmp 0x1009ea52
mov eax, dword [esp + 0x64]
push dword [esp + 0x80]
mov byte [esp + 0x16], dl
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [edx + eax]
call fcn.1006b3c0
add esp, 4
test eax, eax
jne 0x1009eaa1
cmp dword [esp + 0x24], 0
jl 0x1009eae2
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
mov edx, dword [edi + edx]
mov ecx, dword [eax]
call fcn.10065c50
test eax, eax
jne 0x1009ea80
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov cl, byte [esp + 0x33]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x68]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call fcn.100367a0
test eax, eax
je 0x1009eae2
mov dl, byte [esp + 0x12]
inc esi
add edi, 0x18
mov dword [esp + 0x6c], esi
test dl, dl
jne 0x1009e970
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x1009eac8
mov eax, dword [esp + 0x58]
movzx eax, ax
cmp ecx, eax
jge 0x1009eacd
mov byte [esp + 0x20], 0
cmp byte [esp + 0x48], 0
je 0x1009eb9b
mov byte [esp + 0x20], 1
jmp 0x1009eba6
test dword [ebp + 0xc], 0x100
jne 0x1009eb40
cmp byte [esp + 0x1f], 0
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 0xc]
je 0x1009eb0e
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x1e]
cmp cl, al
jne 0x1009eab5
jmp 0x1009eb40
mov dl, al
xor dl, byte [esp + 0x13]
mov byte [esp + 0x1e], dl
je 0x1009eb3b
mov eax, dword [esp + 0x44]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1f], 1
mov edx, dword [esp + 0x48]
mov eax, 1
cmp dword [esp + 0x24], 0
mov esi, dword [esp + 0x68]
movzx edx, dl
cmovl edx, eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x70]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], eax
add dword [esp + 0x2c], 0x18
inc esi
mov dword [esp + 0x68], esi
cmp esi, dword [esp + 0x90]
jge 0x1009eacd
mov edi, dword [esp + 0x64]
jmp 0x1009e8c5
cmp byte [esp + 0x20], 0
je 0x1009ed56
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x38]
or ecx, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x3c]
or ecx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x58], eax
test edx, edx
je 0x1009ed5a
xor esi, esi
mov dword [esp + 0x2c], esi
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x90], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x88], edx
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x1009ed36
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add ecx, 0x44
mov eax, dword [eax + 4]
mov eax, dword [esi + eax]
mov dword [esp + 0x48], eax
test eax, eax
jne 0x1009ec39
xorps xmm0, xmm0
movlpd qword [esp + 0x48], xmm0
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
jmp 0x1009eca0
cmp byte [eax], 0x98
jne 0x1009ec4c
mov edx, dword [eax + 0x1c]
call fcn.1009a9a0
mov edi, eax
mov esi, edx
jmp 0x1009ec96
mov edx, dword [eax + 0x10]
call fcn.1009a770
mov ecx, dword [esp + 0x28]
mov esi, edx
mov edx, dword [esp + 0x48]
mov edi, eax
lea ecx, [ecx + 0x44]
mov edx, dword [edx + 0xc]
call fcn.1009a770
mov ecx, dword [esp + 0x28]
or edi, eax
mov eax, dword [esp + 0x48]
or esi, edx
lea ecx, [ecx + 0x44]
test dword [eax + 4], 0x800
mov edx, dword [eax + 0x14]
je 0x1009ec8d
call fcn.10099930
jmp 0x1009ec92
call fcn.1009a800
or edi, eax
or esi, edx
mov eax, edi
or eax, esi
jne 0x1009ed04
mov eax, dword [esp + 0x48]
mov dword [esp + 0xb8], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movq qword [esp + 0xb0], xmm0
mov byte [esp + 0xb4], 1
mov dword [esp + 0xa4], 0x100678b0
mov dword [esp + 0xa8], 0x100679b0
mov dword [esp + 0xb8], 0
test eax, eax
je 0x1009ed04
mov edx, eax
lea ecx, [esp + 0xa0]
call fcn.100637a0
cmp byte [esp + 0xb4], 0
je 0x1009ed36
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x3c]
not ecx
not eax
and ecx, edi
and eax, esi
or ecx, eax
jne 0x1009ed36
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x58]
add dword [esp + 0x2c], 0x18
inc eax
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
cmp eax, edx
jl 0x1009ebd8
jmp 0x1009ed5a
mov edx, dword [esp + 0x38]
inc dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test cl, cl
jne 0x1009e643
jmp 0x1009ed7e
cmp byte [eax + 0x1d], 0
jne 0x1009ed8f
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x54]
cmp esi, eax
jne 0x1009ed9c
cmp edi, dword [esp + 0x98]
jne 0x1009ed9c
mov al, byte [esp + 0x9c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x1009edf8
lea eax, [edx - 1]
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x1009ee00
nop dword [eax + eax]
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
mov eax, ecx
adc edx, 0xffffffff
and eax, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x1009eddb
cmp esi, edx
je 0x1009edee
mov eax, dword [esp + 0x3c]
dec eax
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x1009ee00
mov esi, dword [esp + 0x18]
jmp 0x1009edb0
mov al, byte [esp + 0x3c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or al, 0xff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret