Function at 0x490340
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 + 0x34], edx
xor ecx, ecx
mov dword [esp + 0x38], eax
xorps xmm0, xmm0
push esi
push edi
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], cx
je 0x49037d
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
je 0x49037d
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [edx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x490374
movzx edi, ax
xor edx, edx
xor ebx, ebx
mov esi, dword [esp + 0x78]
mov eax, edi
movlpd qword [esp + 0x58], xmm0
bts edx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x18], 1
mov dword [esp + 0x2c], edi
cmovae ebx, edx
mov dword [esp + 0x44], ecx
xor edx, ebx
mov dword [esp + 0x1c], esi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, edx
add edx, 0xffffffff
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x7c]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x18]
neg eax
mov dword [esp + 0x14], edx
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
cmp edx, eax
ja 0x490c00
jb 0x49043c
cmp esi, dword [esp + 0x84]
jae 0x490c07
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x44], eax
jg 0x490bfc
mov edi, dword [esp + 0x44]
test edi, edi
jle 0x49046c
mov edx, dword [esp + 0x64]
or edx, dword [ecx + 8]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x68]
or edx, dword [ecx + 0xc]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x14]
cmp edi, eax
jge 0x490492
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edi, dword [eax + edi*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
test eax, 0x800
je 0x49049c
mov ecx, edi
mov edi, dword [esp + 0x2c]
jmp 0x490bd8
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edi
test dword [edi + 0x2c], 0x400
jne 0x490be6
and eax, 0x80
mov dword [esp + 0x58], eax
je 0x4904ba
xor eax, eax
mov word [edi + 0x1e], ax
movzx eax, byte [edi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov ebx, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ecx
cmp dword [esp + 0x2c], ecx
jle 0x490662
mov eax, dword [esp + 0x3c]
add eax, 8
mov dword [esp + 0xc], eax
mov esi, eax
nop dword [eax]
mov eax, ecx
xor edx, edx
xor ecx, ecx
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 + 0x1c]
mov eax, edx
mov dword [esp + 0x4c], edx
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x490644
mov esi, dword [esi]
test esi, esi
je 0x490640
nop dword [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x490555
test eax, 0x80000
je 0x490549
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x49054c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x490530
jmp 0x490640
test esi, esi
je 0x490640
mov al, byte [esi]
cmp al, 0xa7
je 0x49056b
cmp al, 0xa9
jne 0x490640
cmp dword [esi + 0x1c], ebx
jne 0x490640
mov eax, dword [esp + 0x80]
mov edx, ebx
mov ecx, dword [esp + 0x64]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x70]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x50]
push eax
lea ecx, [ecx + 0x50]
call fcn.0048b610
mov edi, eax
add esp, 0x14
test edi, edi
je 0x490640
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4905e0
mov eax, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
jle 0x4905dc
mov eax, dword [eax + 0x38]
nop dword [eax]
cmp edi, dword [eax]
je 0x4905dc
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4905d0
cmp ecx, edx
jge 0x49063c
test bl, 0x82
je 0x490624
cmp word [esi + 0x20], 0
jl 0x490624
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004440c0
mov ebx, eax
test ebx, ebx
jne 0x49060a
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.00444310
test eax, eax
je 0x49063c
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.00409c00
test eax, eax
jne 0x49063c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
or eax, dword [esp + 0x50]
or edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
add esi, 0x14
inc ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x2c]
jl 0x4904f0
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x2c]
test eax, 0x1000
jne 0x490a5d
test eax, 0x100
je 0x49068e
mov dword [esp + 0x30], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4906ca
mov edx, dword [edi + 0x20]
mov dword [esp + 0x30], edx
test edx, edx
je 0x490374
test byte [edx + 0x38], 4
jne 0x490374
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4906c5
mov byte [esp + 0x18], 1
test eax, 0x8000
je 0x4906ca
mov byte [esp + 0x18], 0
xor al, al
mov byte [esp + 0x23], 0
mov dword [esp + 0x28], eax
xor edx, edx
movzx eax, cx
mov byte [esp + 0x22], 0
mov dword [esp + 0xc], edx
mov dword [esp + 0x78], eax
test eax, eax
jle 0x490a5d
mov dword [esp + 0x4c], edx
movzx ebx, word [edi + 0x18]
mov byte [esp + 0x21], 1
cmp edx, ebx
jge 0x49076c
movzx eax, word [edi + 0x32]
cmp edx, eax
jl 0x49076c
mov edi, dword [edi + 0x38]
mov eax, dword [esp + 0x80]
mov esi, dword [edi + edx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x49073e
mov ebx, dword [esp + 0x18]
test ecx, 0x180
mov ecx, 0
movzx eax, bl
cmove ecx, eax
mov byte [esp + 0x18], cl
jmp 0x490a40
test cl, 1
je 0x49076c
mov esi, dword [esi]
inc edx
cmp edx, ebx
jge 0x490768
mov ecx, dword [esp + 0xc]
inc ecx
lea ecx, [edi + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x490762
inc edx
add ecx, 4
cmp edx, ebx
jl 0x490752
jmp 0x490768
xor al, al
mov byte [esp + 0x21], al
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x490798
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x38], ecx
mov al, byte [edx + eax]
and al, 1
mov byte [esp + 0x13], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x20]
cmp ecx, eax
jne 0x4907a4
jmp 0x49079d
mov byte [esp + 0x13], 0
or ecx, 0xffffffff
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x18]
test al, al
je 0x4907df
test ecx, ecx
js 0x4907d0
cmp edx, ebx
jl 0x4907d0
mov eax, dword [esi + 0xc]
add ecx, ecx
mov ebx, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 4]
mov ecx, dword [esp + 0x38]
and al, 0xf
neg al
sbb al, al
and al, bl
xor edx, edx
movzx eax, al
cmp ecx, 0xfffffffe
cmove eax, edx
mov dword [esp + 0x18], eax
mov bh, byte [esp + 0x21]
xor edi, edi
test bh, bh
je 0x490948
mov esi, dword [esp + 0x3c]
add esi, 8
mov dword [esp + 0x6c], esi
nop dword [eax + eax]
cmp edi, dword [esp + 0x2c]
jge 0x490948
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 0x490938
mov edx, dword [esi]
test edx, edx
je 0x490938
nop dword [eax + eax]
mov eax, dword [edx + 4]
test eax, 0x82000
je 0x490865
test eax, 0x80000
je 0x490859
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 8]
jmp 0x49085c
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x490840
jmp 0x490938
test edx, edx
je 0x490938
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x38]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp ecx, 0xffffffff
jl 0x4908ae
mov al, byte [edx]
cmp al, 0xa7
je 0x490891
cmp al, 0xa9
jne 0x490938
mov eax, dword [esp + 0x34]
mov bh, bl
cmp dword [edx + 0x1c], eax
jne 0x490938
movsx eax, word [edx + 0x20]
cmp eax, ecx
jne 0x490938
jmp 0x4908f8
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ecx + 8]
test eax, eax
je 0x4908d1
test dword [eax + 4], 0x2000
je 0x4908d1
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4908c1
test dword [edx + 4], 0x2000
je 0x4908e1
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4908d1
push dword [esp + 0x34]
xor ecx, ecx
push eax
call fcn.0044c060
add esp, 8
test eax, eax
jne 0x490938
mov ecx, dword [esp + 0x38]
cmp ecx, 0xffffffff
je 0x490976
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004440c0
test eax, eax
jne 0x490919
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x30]
mov bh, bl
mov esi, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.00409c00
test eax, eax
je 0x49097a
mov esi, dword [esp + 0x6c]
add esi, 0x14
inc edi
mov dword [esp + 0x6c], esi
test bh, bh
jne 0x490800
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x49095b
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x490960
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0x28]
test al, al
je 0x490a5d
mov byte [esp + 0x18], 1
jmp 0x490a69
mov esi, dword [esp + 0xc]
cmp word [esp + 0x58], 0
mov ebx, dword [esp + 0x24]
je 0x49098d
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov esi, dword [esp + 0x3c]
jne 0x4909ea
lea eax, [edi + edi*4]
mov al, byte [esi + eax*4 + 0x10]
and al, 1
cmp byte [esp + 0x23], 0
je 0x4909ba
mov cl, byte [esp + 0x13]
xor cl, byte [esp + 0x22]
cmp cl, al
sete al
test al, al
je 0x490948
jmp 0x4909ea
xor al, byte [esp + 0x13]
mov byte [esp + 0x22], al
je 0x4909e5
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 + 0x23], 1
mov edx, dword [esp + 0xc]
lea eax, [edi + edi*4]
test byte [esi + eax*4 + 0x10], 2
je 0x490a0b
movzx eax, word [ebx + 0x18]
cmp edx, eax
jne 0x490948
or dword [ebx + 0x2c], 0x80000
cmp dword [esp + 0x38], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x28]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x28], eax
xor eax, eax
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
add dword [esp + 0x4c], 0x14
inc edx
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x78]
jge 0x490960
mov edi, dword [esp + 0x24]
jmp 0x4906f3
mov ebx, dword [esp + 0x18]
test bl, bl
je 0x490bc4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x2c]
or eax, dword [ecx + 8]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x74]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x50], eax
test edi, edi
jle 0x490bcc
mov esi, dword [esp + 0x3c]
add esi, 8
mov dword [esp + 0x28], esi
xor edi, edi
xor edx, edx
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov ecx, edi
cmovae edx, edi
and ecx, dword [esp + 0x1c]
mov eax, edx
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x14]
and eax, edx
or ecx, eax
jne 0x490ba0
mov ecx, dword [esp + 0x40]
mov esi, dword [esi]
add ecx, 0x1f0
test esi, esi
je 0x490b0e
cmp byte [esi], 0xa7
jne 0x490af8
test byte [esi + 4], 0x20
jne 0x490af8
mov edx, dword [esi + 0x1c]
call fcn.0048b1e0
mov ebx, eax
mov ecx, edx
jmp 0x490b1f
test dword [esi + 4], 0x810000
jne 0x490b0e
mov edx, esi
call fcn.0048ac50
mov ebx, eax
mov ecx, edx
jmp 0x490b1f
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, ebx
mov dword [esp + 0x30], ecx
or eax, ecx
jne 0x490b74
mov dword [esp + 0x98], fcn.004468b0
mov eax, 1
mov word [esp + 0xa8], ax
mov dword [esp + 0x9c], 0x446730
mov dword [esp + 0xac], 0
test esi, esi
je 0x490b74
mov edx, esi
lea ecx, [esp + 0x94]
call fcn.00440d20
cmp word [esp + 0xa8], 0
je 0x490b9c
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
not ecx
mov edx, dword [esp + 0x14]
not eax
and eax, dword [esp + 0x30]
and ecx, ebx
or ecx, eax
jne 0x490ba0
or dword [esp + 0x1c], edi
or edx, dword [esp + 0x78]
mov dword [esp + 0x14], edx
jmp 0x490ba0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x50]
add dword [esp + 0x28], 0x14
inc eax
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], eax
cmp eax, edi
jl 0x490aa0
mov ecx, dword [esp + 0x24]
jmp 0x490bd0
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
inc dword [esp + 0x44]
test bl, bl
jne 0x490421
jmp 0x490bfc
cmp byte [edi + 0x20], 0
je 0x490bf8
and eax, 0x280
cmp eax, 0x80
jne 0x490c0d
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x48]
cmp esi, dword [esp + 0x84]
jne 0x490c1b
cmp edx, eax
jne 0x490c1b
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x490c96
lea ebx, [edi - 1]
test ebx, ebx
jle 0x490374
mov edi, dword [esp + 0x14]
nop
cmp ebx, 0x40
jge 0x490c54
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
adc edx, 0xffffffff
jmp 0x490c6e
xorps xmm0, xmm0
movlpd qword [esp + 0x88], xmm0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov eax, ecx
and eax, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x490c7e
cmp esi, edx
je 0x490c8d
dec ebx
test ebx, ebx
jle 0x490374
mov esi, dword [esp + 0x1c]
jmp 0x490c30
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret