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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x509018]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, ecx
mov dword [esp + 0x48], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov dword [esp + 0x88], ecx
xor ebx, ebx
mov ecx, dword [ebp + 0x14]
push esi
mov dword [esp + 0x94], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x9c], ecx
movlpd qword [esp + 0x70], xmm0
cmp word [ebp + 0x10], bx
je 0x497f74
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x4987f7
movzx eax, word [edx]
mov dword [esp + 0xa0], eax
cmp eax, 0x3f
ja 0x4987f7
movzx ecx, ax
xor edx, edx
xor esi, esi
mov edi, dword [esp + 0x70]
mov eax, ecx
movlpd qword [esp + 0x88], xmm0
bts edx, eax
movlpd qword [esp + 0x80], xmm0
cmp eax, 0x20
mov byte [esp + 0x20], 1
mov dword [esp + 0x40], ecx
cmovae esi, edx
mov dword [esp + 0x48], ebx
xor edx, esi
mov dword [esp + 0x18], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, edx
add edx, 0xffffffff
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x20]
adc esi, 0xffffffff
and eax, 0x800
mov dword [esp + 0x58], esi
mov esi, dword [esp + 0x74]
mov dword [esp + 0x94], eax
mov eax, ebx
setne al
mov dword [esp + 0x10], esi
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x6c], eax
nop
mov eax, dword [esp + 0x58]
cmp esi, eax
ja 0x49878b
jb 0x498048
cmp edi, dword [esp + 0x78]
jae 0x49878f
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x48], eax
jg 0x498787
cmp dword [esp + 0x48], 0
jle 0x498077
mov ecx, dword [esp + 0x6c]
or ecx, dword [ebx + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x5c]
or ecx, dword [ebx + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
cmp ebx, eax
jge 0x4980a1
cmp word [esp + 0x94], 0
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + ebx*4]
mov dword [esp + 0x34], ebx
jne 0x498773
jmp 0x4980ac
mov ebx, dword [esp + 0x98]
mov dword [esp + 0x34], ebx
mov edx, dword [ebx + 0x24]
test edx, 0x400
jne 0x498781
xor eax, eax
mov word [ebx + 0x1e], ax
movzx eax, byte [ebx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x40], eax
jbe 0x498237
mov ebx, dword [esp + 0x54]
add ebx, 4
mov dword [esp + 0x28], ebx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x38], ecx
cmovae edx, ecx
and ecx, edi
mov eax, edx
mov dword [esp + 0x4c], edx
and eax, esi
or ecx, eax
jne 0x498214
mov esi, dword [ebx]
test esi, esi
je 0x498143
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x498143
test eax, 0x40000
je 0x49813c
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x49813f
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x498123
cmp byte [esi], 0xa2
jne 0x498210
mov edx, dword [esp + 0x60]
cmp dword [esi + 0x1c], edx
jne 0x498210
mov eax, dword [esp + 0x7c]
xor ebx, ebx
movsx ecx, word [esi + 0x20]
push ebx
movzx eax, ax
push eax
push ecx
push edx
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0xd0]
lea edx, [edx + 0x50]
call fcn.00493f50
mov edx, eax
add esp, 0x10
test edx, edx
je 0x4981da
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
not eax
not ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
nop word [eax + eax]
mov edi, dword [edx + 0x20]
mov ecx, edi
and ecx, eax
mov eax, dword [edx + 0x24]
and eax, dword [esp + 0x44]
or ecx, eax
jne 0x4981c2
or edi, dword [edx + 0x24]
jne 0x4981bd
test byte [edx + 0xc], 0x82
jne 0x4981dc
test ebx, ebx
cmove ebx, edx
lea ecx, [esp + 0xc0]
call fcn.00493cb0
mov edx, eax
test edx, edx
je 0x4981da
mov eax, dword [esp + 0x3c]
jmp 0x4981a0
mov edx, ebx
test edx, edx
je 0x49820c
movzx ebx, word [edx + 0xc]
cmp ebx, 1
jne 0x498266
mov eax, dword [esp + 0x34]
xor ecx, ecx
movzx edi, word [eax + 0x28]
test edi, edi
je 0x498262
mov eax, dword [eax + 0x30]
nop word [eax + eax]
cmp edx, dword [eax]
je 0x498262
inc ecx
add eax, 4
cmp ecx, edi
jl 0x498200
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], 0x18
inc eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x40]
jl 0x4980f2
mov ebx, dword [esp + 0x34]
mov edx, dword [ebx + 0x24]
test edx, 0x1000
jne 0x498633
test edx, 0x100
je 0x4982a9
mov dword [esp + 0x4c], 0
mov eax, 1
mov dword [esp + 0x44], 0
jmp 0x4982d7
cmp ecx, edi
jge 0x49820c
test bl, 0x82
je 0x49828c
cmp word [esi + 0x20], 0
jl 0x49828c
push dword [edx]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.0044c050
add esp, 4
test eax, eax
je 0x49820c
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
or edi, dword [esp + 0x38]
or esi, dword [esp + 0x4c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
jmp 0x498214
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x4987f7
test byte [ecx + 0x38], 4
jne 0x4987f7
movzx eax, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
mov dword [esp + 0x44], eax
movzx eax, word [ecx + 0x34]
setne byte [esp + 0x20]
xor cl, cl
movzx eax, ax
xor edi, edi
mov byte [esp + 0x27], cl
mov byte [esp + 0x26], cl
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x70], eax
test eax, eax
je 0x498633
mov dword [esp + 0x3c], edi
nop
movzx esi, word [ebx + 0x18]
mov dl, 1
mov byte [esp + 0x17], dl
cmp edi, esi
jge 0x49837a
movzx eax, word [ebx + 0x2a]
cmp edi, eax
jl 0x49837a
mov ebx, dword [ebx + 0x30]
mov eax, dword [esp + 0x7c]
mov edi, dword [ebx + edi*4]
movzx ecx, word [edi + 0xc]
and eax, ecx
test ax, ax
je 0x49834d
mov eax, dword [esp + 0x20]
test ecx, 0x100
mov ebx, dword [esp + 0x34]
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x20], cl
jmp 0x498616
test dl, cl
je 0x498376
mov eax, dword [esp + 0x2c]
mov edi, dword [edi]
lea edx, [eax + 1]
cmp edx, esi
jge 0x498372
lea ecx, [eax + 1]
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], edi
je 0x4983a4
inc edx
add ecx, 4
cmp edx, esi
jl 0x498364
mov dl, byte [esp + 0x17]
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
test ebx, ebx
je 0x4983a8
mov eax, dword [ebx + 4]
movsx ecx, word [eax + edi*2]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x28], ecx
mov dh, byte [edi + eax]
mov eax, dword [ebx + 0xc]
mov byte [esp + 0x1f], dh
movsx eax, word [eax + 0x28]
cmp ecx, eax
jne 0x4983b4
jmp 0x4983ad
xor dl, dl
jmp 0x498376
mov byte [esp + 0x1f], 0
or ecx, 0xffffffff
mov dword [esp + 0x28], ecx
cmp byte [esp + 0x20], 0
je 0x4983e0
test ecx, ecx
js 0x4983e0
cmp edi, esi
jl 0x4983e0
mov eax, dword [ebx + 0xc]
add ecx, ecx
mov ebx, dword [esp + 0x20]
xor esi, esi
movzx ebx, bl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
cmove ebx, esi
mov dword [esp + 0x20], ebx
xor edi, edi
test dl, dl
je 0x498529
mov esi, dword [esp + 0x54]
add esi, 4
mov dword [esp + 0x38], esi
cmp edi, dword [esp + 0x40]
jge 0x498529
xor ecx, ecx
mov eax, edi
bts ecx, eax
xor ebx, ebx
cmp eax, 0x20
cmovae ebx, ecx
xor ecx, ebx
cmp eax, 0x40
mov dword [esp + 0x80], ecx
cmovae ebx, ecx
and ecx, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x88], ebx
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x498519
mov ecx, dword [esi]
test ecx, ecx
je 0x498460
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x498460
test eax, 0x40000
je 0x498459
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x49845c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x498440
mov al, byte [ebp + 0xc]
and al, 0xc0
neg al
sbb al, al
and dl, al
cmp dword [esp + 0x28], 0xffffffff
mov bl, dl
jl 0x49849a
cmp byte [ecx], 0xa2
jne 0x498519
mov eax, dword [esp + 0x60]
cmp dword [ecx + 0x1c], eax
jne 0x498519
movsx eax, word [ecx + 0x20]
cmp eax, dword [esp + 0x28]
jne 0x498519
jmp 0x4984c1
mov eax, dword [esp + 0x4c]
push dword [esp + 0x60]
mov byte [esp + 0x1b], dl
mov edx, dword [esp + 0x40]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.00454590
add esp, 4
test eax, eax
jne 0x49856f
mov esi, dword [esp + 0x28]
cmp esi, 0xffffffff
je 0x498579
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0044bed0
test eax, eax
jne 0x4984ea
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
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 0x49855a
test ecx, ecx
jne 0x49856c
mov dl, bl
test ecx, ecx
je 0x498575
mov esi, dword [esp + 0x38]
add esi, 0x18
inc edi
mov dword [esp + 0x38], esi
test dl, dl
jne 0x4983f5
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x498540
mov eax, dword [esp + 0x44]
movzx eax, ax
cmp esi, eax
jge 0x498545
mov byte [esp + 0x20], 0
cmp byte [esp + 0x30], 0
je 0x498633
mov byte [esp + 0x20], 1
jmp 0x49863e
movzx eax, byte [eax + 0x4f1158]
movzx ecx, byte [ecx + 0x4f1158]
sub ecx, eax
jne 0x49850f
inc edx
jmp 0x498500
mov dl, byte [esp + 0x17]
jmp 0x498519
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
inc eax
test byte [ebp + 0xc], 0x40
mov word [ebx + 0x1e], ax
jne 0x4985e2
cmp byte [esp + 0x27], 0
lea eax, [edi + edi*2]
mov ecx, dword [esp + 0x54]
mov al, byte [ecx + eax*8 + 0x10]
je 0x4985ac
mov cl, byte [esp + 0x1f]
xor cl, byte [esp + 0x26]
cmp cl, al
jne 0x49852d
jmp 0x4985e2
mov dh, al
xor dh, byte [esp + 0x1f]
mov byte [esp + 0x26], dh
je 0x4985dd
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 [esp + 0x9c]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x27], 1
mov ecx, dword [esp + 0x30]
cmp esi, 0xffffffff
mov eax, 1
movzx ecx, cl
cmove ecx, eax
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x88]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x2c]
add dword [esp + 0x3c], 0x18
inc edi
mov dword [esp + 0x2c], edi
cmp edi, dword [esp + 0x70]
jl 0x498300
jmp 0x498545
cmp byte [esp + 0x20], 0
je 0x498763
mov eax, dword [esp + 0x64]
or eax, dword [ebx + 8]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
or eax, dword [ebx + 0xc]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x498767
mov ebx, dword [esp + 0x54]
add ebx, 4
mov dword [esp + 0x30], 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 + 0x18]
mov eax, edi
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x49873b
mov ebx, dword [ebx]
test ebx, ebx
je 0x4986b5
mov ecx, dword [esp + 0x50]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004936d0
mov ecx, edx
jmp 0x4986c6
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x44], eax
or eax, ecx
mov dword [esp + 0x3c], ecx
jne 0x498713
mov byte [esp + 0xb8], 1
mov dword [esp + 0xa8], fcn.0044e3a0
mov dword [esp + 0xac], 0x44e240
mov dword [esp + 0xbc], eax
test ebx, ebx
je 0x498713
mov edx, ebx
lea ecx, [esp + 0xa4]
call fcn.00449540
cmp byte [esp + 0xb8], 0
je 0x49873b
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
not ecx
and ecx, dword [esp + 0x44]
not eax
and eax, dword [esp + 0x3c]
or ecx, eax
jne 0x49873b
or dword [esp + 0x18], esi
mov esi, dword [esp + 0x10]
or esi, edi
mov dword [esp + 0x10], esi
jmp 0x49873f
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
add dword [esp + 0x30], 0x18
inc eax
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
cmp eax, ecx
jl 0x498671
mov ebx, dword [esp + 0x34]
jmp 0x49876b
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
inc dword [esp + 0x48]
test dl, dl
jne 0x498030
jmp 0x498787
cmp byte [ebx + 0x1d], 0
jne 0x498795
mov eax, dword [esp + 0x58]
cmp edi, dword [esp + 0x78]
jne 0x4987b1
cmp esi, eax
jne 0x4987b1
mov al, byte [esp + 0xa0]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x20], 0
jne 0x498825
lea ebx, [ecx - 1]
test ebx, ebx
jle 0x4987f7
mov edi, dword [esp + 0x10]
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, dword [esp + 0x18]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4987f2
cmp esi, edx
je 0x49880e
dec ebx
test ebx, ebx
jg 0x4987c3
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004bda16
mov esp, ebp
pop ebp
ret