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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x57f0b4]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, ecx
mov dword [esp + 0x30], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x94], ecx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x40], eax
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], cx
je 0x49ef14
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x49f7e5
movzx eax, word [edx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x49f7e5
movzx esi, ax
xor edx, edx
xor ebx, ebx
mov edi, dword [esp + 0x7c]
mov eax, esi
movlpd qword [esp + 0x58], xmm0
bts edx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x18], 1
mov dword [esp + 0x24], esi
cmovae ebx, edx
mov dword [esp + 0x10], edi
xor edx, ebx
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, edx
add edx, 0xffffffff
mov dword [esp + 0x80], edx
adc ebx, 0xffffffff
and eax, 0x803
neg eax
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x78]
sbb eax, eax
mov dword [esp + 0x14], ebx
neg eax
add eax, 0x182
xor edx, edx
movzx eax, ax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], edx
mov dword [esp + 0x74], eax
nop word [eax + eax]
mov eax, dword [esp + 0x48]
cmp edi, eax
ja 0x49f754
jb 0x49efdb
cmp ebx, dword [esp + 0x80]
jae 0x49f75b
movzx eax, word [ebp + 0x10]
cmp edx, eax
jg 0x49f750
test edx, edx
jle 0x49f001
mov esi, dword [esp + 0x74]
or esi, dword [ecx + 8]
mov dword [esp + 0x74], esi
mov esi, dword [esp + 0x64]
or esi, dword [ecx + 0xc]
mov dword [esp + 0x64], esi
cmp edx, eax
jge 0x49f02b
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], esi
test eax, 0x800
je 0x49f039
mov ecx, esi
mov esi, dword [esp + 0x24]
jmp 0x49f728
mov esi, dword [esp + 0x98]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], esi
mov edx, dword [esi + 0x2c]
test edx, 0x400
jne 0x49f73a
and eax, 0x80
mov dword [esp + 0x58], eax
je 0x49f059
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov edi, dword [eax + ecx*8 + 0x34]
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x24], eax
jbe 0x49f1d5
mov ebx, dword [esp + 0x3c]
add ebx, 8
mov dword [esp + 0x28], ebx
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 + 0x14]
mov eax, edx
mov dword [esp + 0x4c], edx
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x49f1b2
mov ecx, dword [ebx]
call fcn.00455df0
mov esi, eax
test esi, esi
je 0x49f1b2
mov al, byte [esi]
cmp al, 0xa7
je 0x49f0de
cmp al, 0xa9
jne 0x49f1b2
cmp dword [esi + 0x1c], edi
jne 0x49f1b2
mov eax, dword [esp + 0x84]
mov edx, edi
mov ecx, dword [esp + 0x74]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x6c]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x50]
push eax
add ecx, 0x58
call fcn.0049a670
mov edi, eax
add esp, 0x14
test edi, edi
je 0x49f1ae
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x49f152
mov eax, dword [esp + 0x20]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x49f14e
mov eax, dword [eax + 0x38]
nop dword [eax]
cmp edi, dword [eax]
je 0x49f14e
inc ecx
add eax, 4
cmp ecx, edx
jl 0x49f140
jmp 0x49f1ae
cmp ecx, edx
jge 0x49f1ae
test bl, 0x82
je 0x49f196
cmp word [esi + 0x20], 0
jl 0x49f196
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x28]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00455e20
mov ebx, eax
test ebx, ebx
jne 0x49f17c
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.00455ff0
test eax, eax
je 0x49f1ae
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.00421800
test eax, eax
jne 0x49f1ae
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 0x14
inc eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x24]
jl 0x49f090
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x2c]
test edx, 0x1000
jne 0x49f5a2
test edx, 0x100
je 0x49f204
mov edx, dword [esp + 0x18]
mov eax, 1
mov dword [esp + 0x34], 0
mov dword [esp + 0x50], 0
jmp 0x49f241
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x49f7e5
test byte [ecx + 0x38], 4
jne 0x49f7e5
cmp byte [ecx + 0x36], 0
movzx eax, word [ecx + 0x32]
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x34]
je 0x49f23b
test edx, 0x8000
jne 0x49f23b
mov dl, 1
jmp 0x49f23d
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 + 0x1f], 0
mov byte [esp + 0x1e], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x78], eax
test eax, eax
je 0x49f5a2
mov dword [esp + 0x4c], ecx
nop word [eax + eax]
movzx edi, word [esi + 0x18]
mov bh, 1
mov byte [esp + 0xf], bh
cmp ecx, edi
jge 0x49f2e6
movzx eax, word [esi + 0x32]
cmp ecx, eax
jl 0x49f2e6
mov ebx, dword [esi + 0x38]
mov eax, dword [esp + 0x84]
mov esi, dword [ebx + ecx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x49f2ba
test ecx, 0x180
movzx eax, dl
mov ecx, 0
cmove ecx, eax
mov dl, cl
mov dword [esp + 0x18], edx
jmp 0x49f581
test cl, 1
mov ecx, dword [esp + 0x30]
je 0x49f2e2
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, edi
jge 0x49f2e2
inc ecx
lea ecx, [ebx + ecx*4]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x49f313
inc edx
add ecx, 4
cmp edx, edi
jl 0x49f2d0
mov ecx, dword [esp + 0x30]
mov bh, byte [esp + 0xf]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x49f31b
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 + 0xf], bl
movsx eax, word [eax + 0x20]
cmp edx, eax
jne 0x49f327
jmp 0x49f320
mov ecx, dword [esp + 0x30]
xor bh, bh
jmp 0x49f2e6
mov byte [esp + 0xf], 0
or edx, 0xffffffff
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x18]
test al, al
je 0x49f35e
test edx, edx
js 0x49f34f
cmp ecx, edi
jl 0x49f34f
mov eax, dword [esi + 0xc]
mov ecx, edx
add ecx, ecx
mov eax, dword [eax + 4]
mov al, byte [eax + ecx*8 + 4]
and al, 0xf
neg al
sbb al, al
and al, byte [esp + 0x18]
xor ecx, ecx
movzx eax, al
cmp edx, 0xfffffffe
cmove eax, ecx
mov dword [esp + 0x18], eax
xor edi, edi
test bh, bh
je 0x49f485
mov esi, dword [esp + 0x3c]
add esi, 8
mov dword [esp + 0x70], esi
cmp edi, dword [esp + 0x24]
jge 0x49f485
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 + 0x14]
and ecx, dword [esp + 0x10]
or edx, ecx
jne 0x49f475
mov ecx, dword [esi]
test ecx, ecx
je 0x49f475
nop
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x49f3d5
test eax, 0x80000
je 0x49f3c9
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 8]
jmp 0x49f3cc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x49f3b0
jmp 0x49f475
test ecx, ecx
je 0x49f475
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 0x49f412
mov al, byte [ecx]
cmp al, 0xa7
je 0x49f3fd
cmp al, 0xa9
jne 0x49f475
mov eax, dword [esp + 0x38]
mov bh, bl
cmp dword [ecx + 0x1c], eax
jne 0x49f475
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x49f475
jmp 0x49f435
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x4c]
push dword [esp + 0x38]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 8]
call fcn.0045df80
add esp, 4
test eax, eax
jne 0x49f475
mov edx, dword [esp + 0x28]
cmp edx, 0xffffffff
je 0x49f4b2
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x70]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00455e20
test eax, eax
jne 0x49f456
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x34]
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.00421800
test eax, eax
je 0x49f4b6
mov esi, dword [esp + 0x70]
add esi, 0x14
inc edi
mov dword [esp + 0x70], esi
test bh, bh
jne 0x49f373
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x49f498
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x49f49d
mov byte [esp + 0x18], 0
cmp byte [esp + 0x2c], 0
je 0x49f5a2
mov byte [esp + 0x18], 1
jmp 0x49f5ad
mov esi, dword [esp + 0x30]
cmp word [esp + 0x58], 0
mov ebx, dword [esp + 0x20]
je 0x49f4c9
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x49f527
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
mov al, byte [ecx + eax*4 + 0x10]
and al, 1
cmp byte [esp + 0x1f], 0
je 0x49f4f1
mov cl, byte [esp + 0xf]
xor cl, byte [esp + 0x1e]
cmp cl, al
jne 0x49f485
jmp 0x49f527
mov dl, al
xor dl, byte [esp + 0xf]
mov byte [esp + 0x1e], dl
je 0x49f522
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 [esp + 0x9c]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1f], 1
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0x10], 2
je 0x49f548
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x49f485
or dword [ebx + 0x2c], 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 + 0x14], eax
or dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x30]
add dword [esp + 0x4c], 0x14
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x78]
jge 0x49f49d
mov esi, dword [esp + 0x20]
jmp 0x49f270
cmp byte [esp + 0x18], 0
je 0x49f714
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
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 + 0x50], eax
test esi, esi
je 0x49f720
mov esi, dword [esp + 0x3c]
add esi, 8
mov dword [esp + 0x2c], 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, ebx
mov eax, edx
mov dword [esp + 0x78], edx
and eax, dword [esp + 0x10]
or ecx, eax
jne 0x49f6ea
mov ecx, dword [esp + 0x40]
mov esi, dword [esi]
add ecx, 0x1f8
test esi, esi
je 0x49f652
cmp byte [esi], 0xa7
jne 0x49f63c
test byte [esi + 4], 0x20
jne 0x49f63c
mov edx, dword [esi + 0x1c]
call fcn.0049a1e0
mov ebx, eax
mov ecx, edx
jmp 0x49f663
test dword [esi + 4], 0x810000
jne 0x49f652
mov edx, esi
call fcn.00499d20
mov ebx, eax
mov ecx, edx
jmp 0x49f663
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, ebx
mov dword [esp + 0x34], ecx
or eax, ecx
jne 0x49f6b8
mov dword [esp + 0xa4], fcn.00458510
mov eax, 1
mov word [esp + 0xb4], ax
mov dword [esp + 0xa8], 0x4583e0
mov dword [esp + 0xb8], 0
test esi, esi
je 0x49f6b8
mov edx, esi
lea ecx, [esp + 0xa0]
call fcn.00452da0
cmp word [esp + 0xb4], 0
je 0x49f6e6
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
not ecx
not eax
and ecx, ebx
and eax, dword [esp + 0x34]
or ecx, eax
mov ebx, dword [esp + 0x14]
jne 0x49f6ea
or ebx, edi
mov edi, dword [esp + 0x10]
or edi, dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
jmp 0x49f6ee
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x50]
add dword [esp + 0x2c], 0x14
inc eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
cmp eax, dword [esp + 0x24]
jl 0x49f5e8
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
jmp 0x49f724
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
inc edx
cmp byte [esp + 0x18], 0
mov dword [esp + 0x44], edx
jne 0x49efc0
jmp 0x49f750
cmp byte [esi + 0x20], 0
je 0x49f74c
and eax, 0x280
cmp eax, 0x80
jne 0x49f761
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
cmp ebx, dword [esp + 0x80]
jne 0x49f77d
cmp edi, eax
jne 0x49f77d
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00518690
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x18], 0
jne 0x49f813
lea ebx, [esi - 1]
test ebx, ebx
jle 0x49f7e5
nop
cmp ebx, 0x40
jge 0x49f7b4
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 0x49f7ce
xorps xmm0, xmm0
movlpd qword [esp + 0x88], xmm0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x14]
and esi, edi
cmp eax, ecx
jne 0x49f7e0
cmp esi, edx
je 0x49f7fc
dec ebx
test ebx, ebx
jg 0x49f790
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00518690
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00518690
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00518690
mov esp, ebp
pop ebp
ret