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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
push ebx
mov eax, ecx
mov dword [esp + 0x38], edx
xor ecx, ecx
mov dword [esp + 0x3c], eax
xorps xmm0, xmm0
push esi
push edi
movlpd qword [esp + 0x70], xmm0
cmp word [ebp + 0x10], cx
je 0x1009d498
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x1009dcb1
movzx eax, word [edx]
mov dword [esp + 0x90], eax
cmp eax, 0x3f
ja 0x1009dcb1
movzx ebx, ax
xor edx, edx
xor esi, esi
mov edi, dword [esp + 0x74]
mov eax, ebx
movlpd qword [esp + 0x80], xmm0
bts edx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x18], 1
mov dword [esp + 0x34], ebx
cmovae esi, edx
mov dword [esp + 0x48], ecx
xor edx, esi
mov dword [esp + 0x14], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, edx
add edx, 0xffffffff
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x18]
adc esi, 0xffffffff
and eax, 0x800
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x8c], eax
mov eax, ecx
setne al
mov dword [esp + 0x1c], esi
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
nop dword [eax]
mov eax, dword [esp + 0x4c]
cmp edi, eax
ja 0x1009dc43
jb 0x1009d568
cmp esi, dword [esp + 0x7c]
jae 0x1009dc47
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x48], eax
jg 0x1009dc3f
mov esi, dword [esp + 0x48]
test esi, esi
jle 0x1009d598
mov ebx, dword [esp + 0x60]
or ebx, dword [ecx + 8]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x64]
or ebx, dword [ecx + 0xc]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x34]
cmp esi, eax
jge 0x1009d5bb
cmp word [esp + 0x8c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + esi*4]
mov dword [esp + 0x24], esi
je 0x1009d5c2
mov ecx, esi
jmp 0x1009dc1d
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x24], esi
mov edx, dword [esi + 0x24]
test edx, 0x400
jne 0x1009dc2f
mov eax, dword [ebp + 0xc]
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x1009d5e8
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x1009d730
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
add edx, 4
mov dword [esp + 0x28], edx
nop dword [eax + eax]
xor edi, edi
xor ebx, ebx
bts edi, eax
cmp eax, 0x20
cmovae ebx, edi
xor edi, ebx
cmp eax, 0x40
mov ecx, edi
cmovae ebx, edi
and ecx, dword [esp + 0x1c]
mov eax, ebx
and eax, esi
or ecx, eax
jne 0x1009d70b
mov ecx, dword [edx]
call fcn.1005da40
mov edx, eax
mov dword [esp + 0x50], edx
cmp byte [edx], 0xa4
jne 0x1009d70b
mov eax, dword [esp + 0x58]
cmp dword [edx + 0x1c], eax
jne 0x1009d70b
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x6c]
not eax
push eax
movsx eax, word [edx + 0x20]
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x54]
push eax
add ecx, 0x50
call fcn.10099a00
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1009d707
movzx eax, word [esi + 0xc]
cmp eax, 1
jne 0x1009d6d6
mov edx, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [edx + 0x28]
test edx, edx
je 0x1009d6d2
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x30]
nop
cmp esi, dword [eax]
je 0x1009d6ce
inc ecx
add eax, 4
cmp ecx, edx
jl 0x1009d6c0
jmp 0x1009d707
movzx eax, word [esi + 0xc]
cmp ecx, edx
jge 0x1009d707
test al, 0x82
je 0x1009d6ff
mov eax, dword [esp + 0x50]
cmp word [eax + 0x20], 0
jl 0x1009d6ff
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
push dword [esi]
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.1005dc10
add esp, 4
test eax, eax
je 0x1009d707
or dword [esp + 0x1c], edi
or dword [esp + 0x14], ebx
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 0x14
inc eax
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp eax, ebx
jl 0x1009d620
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 0x24]
test edx, 0x1000
jne 0x1009dadd
test edx, 0x100
je 0x1009d75f
mov edx, dword [esp + 0x18]
mov eax, 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], 0
jmp 0x1009d79c
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x1009dcb1
test byte [ecx + 0x38], 4
jne 0x1009dcb1
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x32]
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x34]
je 0x1009d796
test edx, 0x8000
jne 0x1009d796
mov dl, 1
jmp 0x1009d798
xor dl, dl
mov dword [esp + 0x18], edx
xor cl, cl
movzx eax, ax
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov byte [esp + 0x23], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x70], eax
test eax, eax
je 0x1009dadd
mov dword [esp + 0x3c], ecx
movzx edi, word [esi + 0x18]
mov bh, 1
mov byte [esp + 0x13], bh
cmp ecx, edi
jge 0x1009d838
movzx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x1009d838
mov ebx, dword [esi + 0x30]
mov eax, dword [esp + 0x78]
mov esi, dword [ebx + ecx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x1009d80c
test ecx, 0x180
movzx eax, dl
mov ecx, 0
cmove ecx, eax
mov dl, cl
mov dword [esp + 0x18], edx
jmp 0x1009dabc
test cl, 1
mov ecx, dword [esp + 0x30]
je 0x1009d834
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, edi
jge 0x1009d834
inc ecx
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x1009d865
inc edx
add ecx, 4
cmp edx, edi
jl 0x1009d822
mov ecx, dword [esp + 0x30]
mov bh, byte [esp + 0x13]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x1009d86d
mov eax, dword [esi + 4]
movsx edx, word [eax + ecx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], edx
mov bl, byte [ecx + eax]
mov eax, dword [esi + 0xc]
and bl, 1
mov byte [esp + 0x13], bl
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x1009d879
jmp 0x1009d872
mov ecx, dword [esp + 0x30]
xor bh, bh
jmp 0x1009d838
mov byte [esp + 0x13], 0
or edx, 0xffffffff
mov dword [esp + 0x28], edx
cmp byte [esp + 0x18], 0
je 0x1009d8a6
test edx, edx
js 0x1009d8a6
cmp ecx, edi
jl 0x1009d8a6
mov eax, dword [esi + 0xc]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x18]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*4 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x18], edx
xor edi, edi
test bh, bh
je 0x1009d9c1
mov esi, dword [esp + 0x40]
add esi, 4
mov dword [esp + 0x38], esi
nop dword [eax + eax]
cmp edi, dword [esp + 0x34]
jge 0x1009d9c1
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x1c]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x1009d9b1
mov ecx, dword [esi]
test ecx, ecx
je 0x1009d920
nop word [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x1009d920
test eax, 0x40000
je 0x1009d919
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x1009d91c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x1009d900
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x28]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp edx, 0xffffffff
jl 0x1009d94e
cmp byte [ecx], 0xa4
jne 0x1009d9b1
mov eax, dword [esp + 0x58]
cmp dword [ecx + 0x1c], eax
jne 0x1009d9b1
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x1009d9b1
jmp 0x1009d971
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
push dword [esp + 0x58]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.10064e70
add esp, 4
test eax, eax
jne 0x1009d9b1
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
je 0x1009d9ee
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.1005da70
test eax, eax
jne 0x1009d992
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x5c]
mov bh, bl
mov esi, dword [esp + 0x30]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.1002d7e0
test eax, eax
je 0x1009d9f2
mov esi, dword [esp + 0x38]
add esi, 0x14
inc edi
mov dword [esp + 0x38], esi
test bh, bh
jne 0x1009d8c0
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x1009d9d4
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x1009d9d9
mov byte [esp + 0x18], 0
cmp byte [esp + 0x2c], 0
je 0x1009dadd
mov byte [esp + 0x18], 1
jmp 0x1009dae8
mov esi, dword [esp + 0x30]
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x24]
je 0x1009da08
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x1009da62
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov al, byte [ecx + eax*4 + 0xc]
and al, 1
cmp byte [esp + 0x23], 0
je 0x1009da30
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x22]
cmp cl, al
jne 0x1009d9c1
jmp 0x1009da62
mov dl, al
xor dl, byte [esp + 0x13]
mov byte [esp + 0x22], dl
je 0x1009da5d
mov eax, dword [esp + 0x48]
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 + 0x23], 1
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0xc], 2
je 0x1009da83
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x1009d9c1
or dword [ebx + 0x24], 0x80000
cmp dword [esp + 0x28], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x2c]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x1c], eax
or dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
add dword [esp + 0x3c], 0x14
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x70]
jge 0x1009d9d9
mov esi, dword [esp + 0x24]
jmp 0x1009d7c5
cmp byte [esp + 0x18], 0
je 0x1009dc0d
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
or eax, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x1009dc15
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
add ebx, 4
mov dword [esp + 0x2c], ebx
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov ecx, esi
cmovae edi, esi
and ecx, dword [esp + 0x1c]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x1009dbf1
mov ebx, dword [ebx]
test ebx, ebx
je 0x1009db65
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.10099160
mov ecx, edx
jmp 0x1009db76
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x3c], ecx
jne 0x1009dbcd
mov dword [esp + 0x98], fcn.1005fd70
mov eax, 1
mov word [esp + 0xa8], ax
mov dword [esp + 0x9c], 0x1005fc40
mov dword [esp + 0xac], 0
test ebx, ebx
je 0x1009dbcd
mov edx, ebx
lea ecx, [esp + 0x94]
call fcn.1005b0c0
cmp word [esp + 0xa8], 0
je 0x1009dbed
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x3c]
or ecx, eax
jne 0x1009dbed
or dword [esp + 0x1c], esi
or dword [esp + 0x14], edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add dword [esp + 0x2c], 0x14
inc eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x34]
jl 0x1009db23
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
test dl, dl
jne 0x1009d550
jmp 0x1009dc3b
cmp byte [esi + 0x1d], 0
je 0x1009dc3b
test byte [ebp + 0xc], 0x80
je 0x1009dc4d
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
cmp esi, dword [esp + 0x7c]
jne 0x1009dc5b
cmp edi, eax
jne 0x1009dc5b
mov al, byte [esp + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x18], 0
jne 0x1009dca8
dec ebx
test ebx, ebx
jle 0x1009dcb1
xor ecx, ecx
xor edx, edx
mov eax, ebx
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 0x1009dc94
cmp esi, edx
je 0x1009dc9f
dec ebx
test ebx, ebx
jle 0x1009dcb1
mov esi, dword [esp + 0x1c]
jmp 0x1009dc67
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or al, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret