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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
push ebx
mov ebx, edx
mov eax, ecx
xor edx, edx
mov dword [esp + 0x40], ebx
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
push esi
push edi
movlpd qword [esp + 0x60], xmm0
cmp word [ebp + 0x10], dx
je 0x49923a
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x499b85
movzx eax, word [ebx]
mov dword [esp + 0x90], eax
cmp eax, 0x3f
ja 0x499b85
movzx esi, ax
xor ecx, ecx
xor ebx, ebx
mov edi, dword [esp + 0x64]
mov eax, esi
movlpd qword [esp + 0x88], xmm0
bts ecx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x24], 1
mov dword [esp + 0x38], esi
cmovae ebx, ecx
mov dword [esp + 0x3c], edx
xor ecx, ebx
mov dword [esp + 0x1c], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, ecx
add ecx, 0xffffffff
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x24]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x80], ebx
mov ebx, dword [esp + 0x60]
neg eax
mov dword [esp + 0x20], ebx
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x68], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x80]
cmp edi, eax
ja 0x499af5
jb 0x49930e
cmp ebx, dword [esp + 0x84]
jae 0x499afc
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x3c], eax
jg 0x499b22
cmp dword [esp + 0x3c], 0
jle 0x49933d
mov esi, dword [esp + 0x68]
or esi, dword [edx + 8]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x6c]
or esi, dword [edx + 0xc]
mov dword [esp + 0x6c], esi
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp edx, eax
jge 0x499362
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test eax, 0x800
jne 0x499ae2
jmp 0x49936c
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], edx
test dword [edx + 0x2c], 0x400
jne 0x499b10
and eax, 0x80
mov dword [esp + 0x88], eax
je 0x49938d
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x499588
mov eax, dword [esp + 0x48]
add eax, 8
mov dword [esp + 0x14], eax
mov esi, eax
nop
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, ebx
mov eax, edx
mov dword [esp + 0x30], edx
and eax, edi
or ecx, eax
jne 0x49956a
mov esi, dword [esi]
test esi, esi
je 0x499566
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x499425
test eax, 0x80000
je 0x499419
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x49941c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x499400
jmp 0x499566
mov al, byte [esi]
cmp al, 0xa7
je 0x499433
cmp al, 0xa9
jne 0x499566
mov edx, dword [esp + 0x70]
cmp dword [esi + 0x1c], edx
jne 0x499566
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x68]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x74]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x5c]
push eax
lea ecx, [ecx + 0x58]
call fcn.00494330
mov edi, eax
add esp, 0x14
test edi, edi
je 0x499562
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4994a4
mov eax, dword [esp + 0x28]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x49949c
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x49949c
inc ecx
add eax, 4
cmp ecx, edx
jl 0x499490
cmp ecx, edx
jge 0x49955e
test bl, 0x82
je 0x49952f
cmp word [esi + 0x20], 0
jl 0x49952f
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0043edc0
mov ebx, eax
test ebx, ebx
jne 0x4994d2
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
test dword [eax + 4], 0x400
je 0x4994e5
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4994eb
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x200
jne 0x49950e
test edi, edi
je 0x499501
test dword [edi + 4], 0x200
jne 0x49950c
mov ecx, esi
call fcn.0043edc0
test eax, eax
jne 0x499519
mov edx, edi
mov ecx, esi
call fcn.0043edc0
test eax, eax
je 0x49955e
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
nop
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x499549
test eax, eax
jne 0x49955b
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
or ebx, dword [esp + 0x50]
or edi, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
jmp 0x499566
movzx ecx, byte [eax + 0x4e0968]
movzx eax, byte [esi + 0x4e0968]
sub ecx, eax
jne 0x49955e
inc edx
jmp 0x499520
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
add esi, 0x14
inc ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x38]
jl 0x4993c0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x2c]
test eax, 0x1000
jne 0x49999a
test eax, 0x100
je 0x4995b4
mov dword [esp + 0x44], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4995f4
mov edx, dword [edx + 0x20]
mov dword [esp + 0x44], edx
test edx, edx
je 0x499b85
test byte [edx + 0x38], 4
jne 0x499b85
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4995eb
mov byte [esp + 0x24], 1
test eax, 0x8000
je 0x4995f0
mov byte [esp + 0x24], 0
mov edx, dword [esp + 0x28]
xor al, al
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], eax
xor esi, esi
movzx eax, cx
mov byte [esp + 0x1a], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x60], eax
test eax, eax
je 0x49999a
mov dword [esp + 0x30], esi
nop dword [eax]
movzx edi, word [edx + 0x18]
mov bl, 1
mov byte [esp + 0x13], bl
cmp esi, edi
jge 0x499697
movzx eax, word [edx + 0x32]
cmp esi, eax
jl 0x499697
mov ebx, dword [edx + 0x38]
mov eax, dword [esp + 0x7c]
mov esi, dword [ebx + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x499669
mov eax, dword [esp + 0x24]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x24], cl
jmp 0x49997d
test cl, 1
je 0x49968f
mov eax, dword [esp + 0x14]
mov esi, dword [esi]
lea edx, [eax + 1]
cmp edx, edi
jge 0x49968f
lea ecx, [eax + 1]
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4996ca
inc edx
add ecx, 4
cmp edx, edi
jl 0x499681
mov bl, byte [esp + 0x13]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x4996ce
mov eax, dword [ecx + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [ecx + 0x1c]
mov cl, byte [esi + eax]
and cl, 1
mov byte [esp + 0x13], cl
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0xc]
movsx eax, word [eax + 0x20]
cmp edx, eax
mov eax, 0xffffffff
cmove edx, eax
jmp 0x4996d6
xor bl, bl
jmp 0x499693
or edx, 0xffffffff
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x5c], edx
test al, al
je 0x499711
test edx, edx
js 0x499702
cmp esi, edi
jl 0x499711
mov eax, dword [ecx + 0xc]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x499711
mov byte [esp + 0x24], 0
jmp 0x499711
xor ecx, ecx
movzx eax, al
cmp edx, 0xfffffffe
cmove eax, ecx
mov dword [esp + 0x24], eax
xor edi, edi
test bl, bl
je 0x499849
mov esi, dword [esp + 0x48]
add esi, 8
mov dword [esp + 0x40], esi
cmp edi, dword [esp + 0x38]
jge 0x499849
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 + 0x20]
and ecx, dword [esp + 0x1c]
or edx, ecx
jne 0x499839
mov ecx, dword [esi]
test ecx, ecx
je 0x499839
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x499786
test eax, 0x80000
je 0x49977a
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 8]
jmp 0x49977d
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x499761
jmp 0x499839
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x5c]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp edx, 0xffffffff
jl 0x4997c3
mov al, byte [ecx]
cmp al, 0xa7
je 0x4997aa
cmp al, 0xa9
jne 0x499839
mov eax, dword [esp + 0x70]
mov bl, bh
cmp dword [ecx + 0x1c], eax
jne 0x499839
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x499839
jmp 0x4997e6
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
push dword [esp + 0x70]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 8]
call fcn.00448670
add esp, 4
test eax, eax
jne 0x499839
mov edx, dword [esp + 0x5c]
cmp edx, 0xffffffff
je 0x49988b
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0043edc0
test eax, eax
jne 0x49980b
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x499876
test ecx, ecx
jne 0x499888
mov bl, bh
test ecx, ecx
je 0x49988b
mov esi, dword [esp + 0x40]
add esi, 0x14
inc edi
mov dword [esp + 0x40], esi
test bl, bl
jne 0x499726
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x49985c
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x499861
mov byte [esp + 0x24], 0
cmp byte [esp + 0x2c], 0
je 0x49999a
mov byte [esp + 0x24], 1
jmp 0x4999a5
movzx eax, byte [eax + 0x4e0968]
movzx ecx, byte [ecx + 0x4e0968]
sub ecx, eax
jne 0x49982f
inc edx
jmp 0x499820
cmp word [esp + 0x88], 0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
je 0x4998a5
lea eax, [ebx + 1]
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov byte [esp + 0x37], 1
jne 0x499923
mov ecx, dword [esp + 0x48]
lea eax, [edi + edi*4]
mov dl, byte [ecx + eax*4 + 0x10]
and dl, 1
cmp byte [esp + 0x1b], 0
je 0x4998f3
mov dh, byte [esp + 0x13]
xor ecx, ecx
xor dh, byte [esp + 0x1a]
movzx eax, byte [esp + 0x37]
cmp dh, dl
mov dl, byte [esp + 0x1a]
cmove ecx, eax
mov byte [esp + 0x1a], dl
mov dl, byte [esp + 0x1b]
mov byte [esp + 0x1b], dl
test cl, cl
je 0x499849
jmp 0x499923
xor dl, byte [esp + 0x13]
mov byte [esp + 0x1a], dl
je 0x49991e
mov eax, dword [esp + 0x3c]
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 + 0x1b], 1
mov ecx, dword [esp + 0x48]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 2
je 0x499944
movzx eax, word [esi + 0x18]
cmp ebx, eax
jne 0x499849
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x5c], 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 + 0x28]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x20], eax
or dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x14]
add dword [esp + 0x30], 0x14
inc esi
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x60]
jl 0x499620
jmp 0x499861
cmp byte [esp + 0x24], 0
je 0x499ace
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x38]
or eax, dword [edx + 8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x78]
or eax, dword [edx + 0xc]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x40], eax
test esi, esi
je 0x499ad6
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
add ebx, 8
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 + 0x20]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x499aae
mov ebx, dword [ebx]
test ebx, ebx
je 0x499a22
mov ecx, dword [esp + 0x4c]
mov edx, ebx
lea ecx, [ecx + 0x1f8]
call fcn.00493a80
mov ecx, edx
jmp 0x499a33
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x30], ecx
jne 0x499a8a
mov dword [esp + 0xa0], fcn.00441690
mov eax, 1
mov word [esp + 0xb0], ax
mov dword [esp + 0xa4], 0x441570
mov dword [esp + 0xb4], 0
test ebx, ebx
je 0x499a8a
mov edx, ebx
lea ecx, [esp + 0x9c]
call fcn.0043bbd0
cmp word [esp + 0xb0], 0
je 0x499aaa
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
jne 0x499aaa
or dword [esp + 0x20], esi
or dword [esp + 0x1c], edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
add dword [esp + 0x2c], 0x14
inc eax
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
cmp eax, esi
jl 0x4999e0
jmp 0x499ad2
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc dword [esp + 0x3c]
test cl, cl
jne 0x4992f0
mov eax, dword [esp + 0x80]
cmp ebx, dword [esp + 0x84]
jne 0x499b22
cmp edi, eax
jne 0x499b22
mov al, byte [esp + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edx + 0x20], 0
je 0x499b22
and eax, 0x280
cmp eax, 0x80
jne 0x499b02
test cl, cl
jne 0x499b97
lea ebx, [esi - 1]
test ebx, ebx
jle 0x499b85
nop dword [eax]
cmp ebx, 0x40
jge 0x499b54
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 0x499b6e
xorps xmm0, xmm0
movlpd qword [esp + 0x90], xmm0
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x90]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x20]
and esi, edi
cmp eax, ecx
jne 0x499b80
cmp esi, edx
je 0x499b8e
dec ebx
test ebx, ebx
jg 0x499b30
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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