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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
xor ecx, ecx
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
push esi
mov eax, dword [eax]
push edi
movlpd qword [esp + 0x78], xmm0
mov eax, dword [eax]
mov dword [esp + 0x68], eax
cmp word [ebp + 0x10], cx
je 0x487a4f
test byte [eax + 0x3c], 0x80
jne 0x488231
movzx eax, word [edx]
mov dword [esp + 0x8c], eax
cmp eax, 0x3f
ja 0x488231
movzx ecx, ax
xor esi, esi
xor edi, edi
movlpd qword [esp + 0x70], xmm0
mov eax, ecx
movlpd qword [esp + 0x50], xmm0
bts esi, eax
mov dword [esp + 0x3c], ecx
cmp eax, 0x20
mov dword [esp + 0x44], 0
mov dl, 1
cmovae edi, esi
mov dword [esp + 0x20], edx
xor esi, edi
cmp eax, 0x40
mov eax, dword [esp + 0x74]
cmovae edi, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
add esi, 0xffffffff
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x54]
adc edi, 0xffffffff
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x78]
mov dword [esp + 0x88], edi
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x60], eax
nop dword [eax + eax]
cmp edi, dword [esp + 0x88]
ja 0x4881b4
jb 0x487afb
mov eax, dword [esp + 0x4c]
cmp esi, eax
jae 0x4881ba
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x44], eax
jg 0x4881b4
mov edx, dword [esp + 0x44]
test edx, edx
jle 0x487b33
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
or ecx, dword [edx + 8]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x64]
or ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x3c]
cmp edx, eax
jge 0x487b42
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4]
jmp 0x487b45
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x34], eax
test edx, 0x400
jne 0x4881aa
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 + 0x24], eax
cmp dword [esp + 0x3c], eax
jbe 0x487cd8
xor esi, esi
mov dword [esp + 0x2c], esi
nop word [eax + 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 + 0x50], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x30], edx
and eax, edi
or ecx, eax
jne 0x487cb5
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov esi, dword [esi + eax]
test esi, esi
je 0x487bf2
nop dword [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x487bf2
test eax, 0x40000
je 0x487beb
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 4]
mov esi, dword [eax]
jmp 0x487bee
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x487bd0
cmp byte [esi], 0x9a
jne 0x487cb5
mov edx, dword [esp + 0x80]
cmp dword [esi + 0x1c], edx
jne 0x487cb5
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
not eax
push 0
push 0x182
not ecx
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea ecx, [ecx + 0x148]
call fcn.004843e0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x487cb1
test byte [edi + 0x12], 0x82
je 0x487c97
cmp word [esi + 0x20], 0
jl 0x487c97
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + edx]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
call fcn.0044f6d0
test eax, eax
jne 0x487c6e
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
mov esi, dword [eax]
mov eax, dword [esp + 0x28]
mov edx, dword [edi]
mov ecx, dword [eax]
call fcn.0044f6d0
test eax, eax
jne 0x487c88
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 8]
push dword [eax]
push esi
call fcn.00422240
add esp, 8
test eax, eax
jne 0x487cb1
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
or eax, dword [esp + 0x50]
or edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jmp 0x487cb5
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
add dword [esp + 0x2c], 0x18
inc eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x3c]
jl 0x487b90
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x24]
test edx, 0x1000
jne 0x487fd8
test edx, 0x100
mov edx, dword [esp + 0x34]
je 0x487cff
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x50], edi
lea eax, [edi + 1]
jmp 0x487d2d
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x30], edi
test edi, edi
je 0x488231
test byte [edi + 0x34], 4
jne 0x488231
movzx eax, word [edi + 0x2e]
cmp byte [edi + 0x32], 0
mov dword [esp + 0x50], eax
movzx eax, word [edi + 0x30]
setne byte [esp + 0x20]
movzx eax, ax
xor cl, cl
xor esi, esi
mov byte [esp + 0x1f], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x78], eax
test eax, eax
je 0x487fd8
movzx ecx, word [edx + 0x18]
cmp esi, ecx
jge 0x487d8f
cmp word [edx + 0x2a], 0
jne 0x487d8f
mov eax, dword [edx + 0x30]
mov eax, dword [eax + esi*4]
movzx eax, word [eax + 0x12]
test eax, 0x182
je 0x487d8f
test eax, 0x100
mov ecx, 0
mov eax, dword [esp + 0x20]
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x20], cl
jmp 0x487fc0
test edi, edi
je 0x487db5
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x2c], 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 0x487dc1
jmp 0x487dba
mov byte [esp + 0x13], 0
or edx, 0xffffffff
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x20], 0
je 0x487dee
test edx, edx
js 0x487dee
cmp esi, ecx
jl 0x487dee
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*2]
mov edx, dword [esp + 0x20]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0x14], 0
cmove edx, esi
mov dword [esp + 0x20], edx
xor esi, esi
mov byte [esp + 0x12], 1
xor edi, edi
nop word [eax + eax]
cmp esi, dword [esp + 0x3c]
jge 0x487ef8
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x18]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x487ee9
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov eax, dword [edi + eax]
mov dword [esp + 0x70], eax
test eax, eax
je 0x487e67
mov ecx, dword [eax + 4]
test ecx, 0x1000
je 0x487e67
test ecx, 0x40000
je 0x487e60
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax]
jmp 0x487e63
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x487e43
mov ecx, dword [ebp + 0xc]
and ecx, 0x300
neg ecx
sbb cl, cl
and cl, byte [esp + 0x12]
cmp byte [eax], 0x9a
mov byte [esp + 0x12], cl
mov byte [esp + 0x3b], cl
jne 0x487ee9
mov edx, dword [esp + 0x80]
cmp dword [eax + 0x1c], edx
mov edx, dword [esp + 0x70]
mov byte [esp + 0x12], cl
jne 0x487ee9
movsx eax, word [eax + 0x20]
mov byte [esp + 0x12], cl
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x487ee9
test ecx, ecx
js 0x487f25
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
call fcn.0044f6d0
mov ecx, eax
test ecx, ecx
jne 0x487ec5
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov al, byte [esp + 0x3b]
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x20]
push dword [eax + edx*4]
push dword [ecx]
call fcn.00422240
add esp, 8
test eax, eax
je 0x487f25
inc esi
add edi, 0x18
cmp byte [esp + 0x12], 0
jne 0x487e00
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x487f0b
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x487f10
mov byte [esp + 0x20], 0
cmp byte [esp + 0x24], 0
je 0x487fd8
mov byte [esp + 0x20], 1
jmp 0x487fe3
test dword [ebp + 0xc], 0x100
jne 0x487f83
cmp byte [esp + 0x1f], 0
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 0xc]
je 0x487f51
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x1e]
cmp cl, al
jne 0x487ef8
jmp 0x487f83
mov dl, al
xor dl, byte [esp + 0x13]
mov byte [esp + 0x1e], dl
je 0x487f7e
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
cmp dword [esp + 0x2c], 0
mov eax, 1
mov edx, dword [esp + 0x24]
movzx edx, dl
cmovl edx, eax
xor eax, eax
bts eax, esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
mov esi, dword [esp + 0x5c]
cmovae ecx, eax
or dword [esp + 0x18], eax
or dword [esp + 0x14], ecx
inc esi
mov dword [esp + 0x5c], esi
cmp esi, dword [esp + 0x78]
jge 0x487f10
mov edi, dword [esp + 0x30]
jmp 0x487d52
cmp byte [esp + 0x20], 0
je 0x48818c
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x6c]
or ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x40]
or ecx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
test ecx, ecx
je 0x488190
xor esi, esi
mov dword [esp + 0x30], 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 + 0x78], ecx
cmovae edx, ecx
and ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x70], edx
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x48816c
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
add ecx, 0x44
mov eax, dword [eax + 4]
mov eax, dword [esi + eax]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x488079
xorps xmm0, xmm0
movlpd qword [esp + 0x80], xmm0
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
jmp 0x4880e0
cmp byte [eax], 0x9a
jne 0x48808c
mov edx, dword [eax + 0x1c]
call fcn.00484090
mov edi, eax
mov esi, edx
jmp 0x4880d6
mov edx, dword [eax + 0x10]
call fcn.00483e60
mov ecx, dword [esp + 0x28]
mov esi, edx
mov edx, dword [esp + 0x24]
mov edi, eax
lea ecx, [ecx + 0x44]
mov edx, dword [edx + 0xc]
call fcn.00483e60
mov ecx, dword [esp + 0x28]
or edi, eax
mov eax, dword [esp + 0x24]
or esi, edx
lea ecx, [ecx + 0x44]
test dword [eax + 4], 0x800
mov edx, dword [eax + 0x14]
je 0x4880cd
call fcn.004831c0
jmp 0x4880d2
call fcn.00483ef0
or edi, eax
or esi, edx
mov eax, edi
or eax, esi
jne 0x488140
mov eax, dword [esp + 0x24]
xorps xmm0, xmm0
mov dword [esp + 0xa8], 0
movaps xmmword [esp + 0x90], xmm0
lea ecx, [esp + 0x90]
movq qword [esp + 0xa0], xmm0
mov edx, eax
mov byte [esp + 0xa4], 1
mov dword [esp + 0x90], 0x4512c0
mov dword [esp + 0x94], 0x4513d0
mov dword [esp + 0xa8], 0
call fcn.0044d510
cmp byte [esp + 0xa4], 0
je 0x48816c
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x40]
not ecx
not eax
and ecx, edi
and eax, esi
or ecx, eax
jne 0x48816c
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
add dword [esp + 0x30], 0x18
inc eax
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x50], eax
cmp eax, ecx
jl 0x488015
jmp 0x488190
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x44]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
test dl, dl
jne 0x487ae0
jmp 0x4881b4
cmp byte [eax + 0x1d], 0
jne 0x4881c5
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
cmp esi, eax
jne 0x4881d2
cmp edi, dword [esp + 0x88]
jne 0x4881d2
mov al, byte [esp + 0x8c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test dl, dl
jne 0x488229
lea eax, [ecx - 1]
mov dword [esp + 0x40], eax
test eax, eax
jle 0x488231
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 0x48820c
cmp esi, edx
je 0x48821f
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + 0x40], eax
test eax, eax
jle 0x488231
mov esi, dword [esp + 0x18]
jmp 0x4881e1
mov al, byte [esp + 0x40]
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