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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
push ebx
xor eax, eax
mov dword [esp + 0x54], edx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x68], eax
push edi
lea eax, [esi + esi]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x13c], eax
add eax, ecx
mov edi, eax
mov dword [esp + 0x154], eax
xor eax, eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x64], 0
lea eax, [edi - 2]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x50], eax
test ebx, ebx
jne 0x499eb4
test edx, edx
mov edx, dword [ebp + 0xc]
jne 0x499eb7
test ecx, ecx
jne 0x499eb7
cmp edx, 0xfffffc19
jne 0x499eb7
cmp esi, edx
jne 0x499eb7
push ecx
push ecx
push ecx
push ecx
push ecx
xor edx, edx
call fcn.00491e70
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
test dword [ebp + 0x14], 0xe20f5a6f
je 0x499ecc
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x49af0d
test ecx, ecx
je 0x49af0d
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
jne 0x499eed
test eax, eax
jg 0x49af0d
test eax, eax
jns 0x499efd
mov eax, 0xfffffff1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x49af01
cmp esi, edx
jg 0x49af01
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x499f31
cmp ecx, 0x45524350
mov eax, 0xfffffffc
mov edx, 0xffffffe3
cmove eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0xc]
test al, 2
jne 0x499f45
mov eax, 0xffffffe4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xbc], 1
test ecx, 0x8000000
je 0x499f62
mov eax, 2
jmp 0x499f6a
mov eax, ecx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xfc], eax
mov dword [esp + 0x140], 0xfc00
mov dword [esp + 0x144], 0xdc00
test ecx, 0x2000
jne 0x499fbc
test esi, esi
jle 0x499fbc
cmp esi, edx
jge 0x499fbc
mov eax, dword [ebp + 8]
mov ecx, 0xfc00
mov ax, word [eax + esi*2]
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x499fbc
mov eax, 0xfffffff5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx + 0x18]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x74], 0x989680
lea eax, [ebx + eax*2]
mov dword [esp + 0x98], eax
movzx eax, word [ebx + 0x1c]
mov dword [esp + 0x90], eax
movzx eax, word [ebx + 0x1a]
mov ebx, dword [ebx + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x78], 0x1770
mov dword [esp + 0x11c], 0
test edx, edx
je 0x49a057
mov ecx, dword [edx]
test cl, 1
je 0x49a024
mov eax, dword [edx + 4]
mov dword [esp + 0x60], eax
test cl, 2
je 0x49a030
mov eax, dword [edx + 8]
mov dword [esp + 0x74], eax
test cl, 0x10
je 0x49a03c
mov eax, dword [edx + 0x14]
mov dword [esp + 0x78], eax
test cl, 4
je 0x49a04b
mov eax, dword [edx + 0xc]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x2c]
test cl, 8
je 0x49a057
mov ebx, dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
test ebx, ebx
mov edi, dword [esp + 0x18]
mov edx, 0x4bf5e0
cmovne edx, ebx
mov dword [esp + 0x108], esi
imul eax, dword [esp + 0x90]
mov ebx, dword [ecx + 8]
mov ecx, ebx
or ecx, dword [ebp + 0x14]
shr ecx, 4
and ecx, 1
mov esi, dword [ebp + 0x14]
add eax, dword [esp + 0x48]
mov dword [esp + 0x68], ecx
movzx ecx, word [edi + 0xc]
mov dword [esp + 0x38], ecx
lea eax, [edi + eax*2]
shr dword [esp + 0x38], 8
mov edi, dword [ebp + 8]
mov dword [esp + 0xe4], eax
mov eax, edi
mov dword [esp + 0xe8], eax
mov eax, dword [ebp + 0xc]
and dword [esp + 0x38], 1
mov dword [esp + 0x40], ebx
shr dword [esp + 0x40], 0x12
lea eax, [edi + eax*2]
and dword [esp + 0x40], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xec], eax
mov eax, ebx
shr eax, 5
and eax, 1
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xc8], eax
mov eax, ebx
shr eax, 0x1d
and eax, 1
shr ecx, 0xc
mov dword [esp + 0xc4], eax
and ecx, 1
mov eax, ebx
mov dword [esp + 0xe0], 0
shr eax, 0x19
and eax, 1
mov dword [esp + 0xd4], 0
mov dword [esp + 0xc0], eax
mov eax, esi
shr eax, 7
and eax, 1
mov dword [esp + 0x124], 0
mov dword [esp + 0xb4], eax
mov eax, esi
shr eax, 8
and eax, 1
mov dword [esp + 0x120], 0
mov dword [esp + 0xb8], eax
mov eax, esi
shr eax, 0xa
and eax, 1
mov dword [esp + 0x118], 0
mov dword [esp + 0xcc], eax
mov eax, esi
shr eax, 0x1c
and eax, 1
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xd0], eax
lea eax, [edx + 0x100]
mov dword [esp + 0xa8], eax
lea eax, [edx + 0x340]
mov dword [esp + 0xac], eax
mov eax, esi
mov dword [esp + 0xa4], edx
and eax, 0x1800000
je 0x49a1d2
cmp eax, 0x800000
je 0x49a1eb
cmp eax, 0x1000000
jne 0x49a2a3
mov dword [esp + 0xd8], 0
jmp 0x49a1f6
test ebx, 0x1800000
je 0x49a1eb
mov eax, ebx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xd8], eax
jmp 0x49a1f6
mov dword [esp + 0xd8], 1
test esi, 0x700000
mov eax, esi
cmove eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x49a295
je 0x49a265
test eax, eax
je 0x49a2af
cmp eax, 0x100000
je 0x49a230
cmp eax, 0x200000
jne 0x49a2a3
mov eax, 0xa
jmp 0x49a235
mov eax, 0xd
mov cx, word [esp + 0x9e]
mov esi, 1
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], esi
mov word [esp + 0x9c], ax
mov dword [esp + 0x20], ecx
jmp 0x49a2ee
mov esi, 2
mov dword [esp + 0x88], 0
mov ecx, 0xa
mov dword [esp + 0x8c], esi
mov dword [esp + 0x9c], 0xa000d
mov dword [esp + 0x20], ecx
lea eax, [esi + 0xb]
jmp 0x49a2ee
cmp eax, 0x400000
je 0x49a2c8
cmp eax, 0x500000
je 0x49a2af
mov eax, 0xffffffe9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cx, word [esp + 0x9e]
mov dword [esp + 0x88], 2
mov dword [esp + 0x20], ecx
jmp 0x49a2df
mov ax, word [esp + 0x9e]
mov dword [esp + 0x88], 1
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x8c]
mov ax, word [esp + 0x9c]
cmp dword [esp + 0xfc], 0
mov dword [esp + 0x14], eax
je 0x49a317
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 0xc]
test eax, 0x200
je 0x49a317
mov eax, 0xfffffff3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xaaaaaaab
mul dword [ebp + 0x1c]
mov eax, 0x55555556
shr edx, 1
lea ebx, [edx + edx*2]
lea ecx, [ebx + ebx]
mov dword [esp + 0x2c], ebx
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
movzx eax, word [eax + 0x12]
test ax, ax
je 0x49a3b3
mov ecx, eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49a3b3
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x2c], eax
shl eax, 2
push eax
call fcn.0049f23d
mov ebx, eax
add esp, 4
mov dword [esp + 0x7c], ebx
test ebx, ebx
jne 0x49a386
lea eax, [ebx - 6]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ax, word [esp + 0x9e]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x20], eax
mov ax, word [esp + 0x9c]
mov dword [esp + 0x58], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], eax
jmp 0x49a3c0
mov eax, dword [ebp + 0x18]
mov ebx, eax
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x80], eax
mov dword [esp + 0xb0], 0
mov dword [esp + 0x104], 0xffffffff
lea ecx, [eax + eax]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49a471
mov ecx, dword [esp + 0x2c]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov edx, ecx
movzx eax, word [eax + 0x10]
shl eax, 2
sub edx, eax
mov eax, dword [esp + 0x24]
add eax, 8
cmp edx, eax
cmovb edx, eax
sub ecx, 4
cmp ecx, edx
jb 0x49a441
nop word [eax + eax]
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49a430
mov ebx, dword [esp + 0x7c]
mov dword [ebx + 4], 0xffffffff
mov eax, dword [esp + 0x7c]
mov dword [eax], 0xffffffff
mov ax, word [esp + 0x9e]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x20], eax
mov ax, word [esp + 0x9c]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x68], 0
jne 0x49a5d0
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0xc]
test al, 0x10
je 0x49a59b
movzx edx, word [edx + 0x14]
movzx ebx, dx
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x30], edx
movzx ecx, dx
test al, 0x20
je 0x49a5c7
mov eax, 0xff
cmp dx, ax
ja 0x49a564
movzx edx, byte [ebx + ecx]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
cmp dx, 0x7f
ja 0x49a568
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
movzx eax, ax
mov dword [esp + 0x138], eax
movzx eax, dx
lea edx, [ecx + 0xc]
mov dword [esp + 0x134], eax
movzx eax, word [edx]
mov dword [esp + 0x24], edx
test al, 0x40
je 0x49a61f
movzx ecx, word [ecx + 0x16]
mov dword [esp + 0x28], ecx
mov edi, dword [esp + 0x28]
movzx edi, di
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x64], 1
movzx ecx, cx
mov dword [esp + 0x24], edx
test al, al
jns 0x49a623
mov eax, 0xff
cmp word [esp + 0x28], ax
ja 0x49a5e0
movzx eax, byte [ebx + ecx]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
cmp dx, 0x7f
jbe 0x49a627
jmp 0x49a5e4
mov edx, dword [esp + 0x34]
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4ccc20]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4c0240]
mov ax, word [eax*8 + 0x4cbb44]
add ax, dx
movzx eax, ax
mov dword [esp + 0x30], eax
jmp 0x49a4dd
cmp dword [esp + 0x38], 0
jne 0x49a5d0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x49a5d0
mov ebx, dword [esp + 0xa8]
xor edx, edx
test byte [eax + 4], 1
je 0x49a5c0
add eax, 8
mov dword [esp + 0x6c], eax
xor eax, eax
jmp 0x49a4dd
mov edx, dword [esp + 0x34]
jmp 0x49a4d9
mov ebx, dword [esp + 0xa8]
xor edx, edx
xor eax, eax
jmp 0x49a4dd
mov edx, dword [esp + 0x3c]
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4ccc20]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4c0240]
mov ax, word [eax*8 + 0x4cbb44]
add ax, dx
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
add eax, 0xc
mov dword [esp + 0x24], eax
jmp 0x49a627
xor edx, edx
jmp 0x49a627
mov edx, dword [esp + 0x3c]
movzx eax, dx
mov dword [esp + 0x150], eax
mov eax, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x3c]
movzx eax, ax
mov dword [esp + 0x148], eax
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x40], 0
mov ebx, eax
je 0x49a773
mov edx, dword [esp + 0xec]
mov ebx, edi
cmp edi, edx
jae 0x49a773
mov edi, dword [esp + 0x88]
test edi, edi
je 0x49a723
cmp ebx, edx
jae case.default.0x49a6f5
movzx eax, word [ebx]
mov ecx, eax
and ecx, 0xfc00
cmp ecx, 0xd800
jne 0x49a6b2
movzx ecx, word [ebx + 2]
and eax, 0x3ff
and ecx, 0x3ff
shl eax, 0xa
or eax, ecx
add eax, 0x10000
cmp edi, 2
jne 0x49a6e4
cmp eax, 0xa
je case.0x49a6f5.10
cmp eax, 0xd
jne case.default.0x49a6f5
lea eax, [edx - 2]
cmp ebx, eax
jae case.0x49a6f5.10
cmp word [ebx + 2], 0xa
mov esi, 2
je 0x49a70d
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, esi
jmp 0x49a71d
cmp eax, 0x85
ja 0x49a6fc
je case.0x49a6f5.10
add eax, 0xfffffff6
cmp eax, 3
ja case.default.0x49a6f5
jmp dword [eax*4 + 0x49af1c]
sub eax, 0x2028
je case.0x49a6f5.10
sub eax, 1
jne case.default.0x49a6f5
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, 1
jmp 0x49a71d
xor eax, eax
test eax, eax
jne 0x49a76f
jmp 0x49a746
lea eax, [esi + esi]
mov ecx, edx
sub ecx, eax
cmp ebx, ecx
ja 0x49a746
mov eax, dword [esp + 0x14]
cmp word [ebx], ax
jne 0x49a746
cmp esi, 1
je 0x49a76f
mov eax, dword [esp + 0x20]
cmp word [ebx + 2], ax
je 0x49a76f
add ebx, 2
cmp ebx, dword [esp + 0x10]
jae 0x49a767
mov ax, word [ebx]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x49a767
add ebx, 2
cmp ebx, edx
jb 0x49a676
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
or eax, dword [ebp + 0x14]
and eax, 0x4000000
mov dword [esp + 0x44], eax
jne 0x49aa00
cmp dword [esp + 0x4c], 0
je 0x49a7f5
cmp edi, ebx
jae 0x49aa08
mov eax, dword [esp + 0x134]
cmp ax, word [esp + 0x138]
je 0x49a7d5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
movzx eax, word [edi]
cmp ax, cx
je 0x49aa08
cmp ax, dx
je 0x49aa08
add edi, 2
cmp edi, ebx
jb 0x49a7b4
jmp 0x49aa08
mov eax, dword [esp + 0x34]
nop dword [eax]
cmp word [edi], ax
je 0x49aa08
add edi, 2
cmp edi, ebx
jb 0x49a7e0
jmp 0x49aa08
cmp dword [esp + 0x38], 0
je 0x49a9bc
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0xe8]
add eax, ecx
cmp edi, eax
jbe 0x49aa08
cmp edi, ebx
jae 0x49a995
lea edx, [edi - 2]
lea eax, [edi - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], eax
jmp 0x49a837
mov ecx, dword [esp + 0xe8]
cmp dword [esp + 0x88], 0
je 0x49a917
cmp edi, ecx
jbe case.default.0x49a8cb
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
mov ecx, eax
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x49a867
mov eax, dword [esp + 0x44]
mov edx, eax
movzx ecx, word [eax]
movzx ecx, cx
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x49a892
movzx eax, word [edx + 2]
and ecx, 0x3ff
and eax, 0x3ff
shl ecx, 0xa
or ecx, eax
add ecx, 0x10000
cmp dword [esp + 0x88], 2
jne 0x49a8b9
cmp ecx, 0xa
je case.0x49a8cb.10
cmp ecx, 0xd
je case.0x49a8cb.11
xor eax, eax
test eax, eax
jne 0x49a995
mov edx, dword [esp + 0x1c]
jmp 0x49a943
cmp ecx, 0x85
ja 0x49a8f7
je case.0x49a8cb.11
add ecx, 0xfffffff6
cmp ecx, 3
ja case.default.0x49a8cb
jmp dword [ecx*4 + 0x49af2c]
cmp edx, dword [esp + 0xe8]
jbe case.0x49a8cb.11
cmp word [edx - 2], 0xd
mov esi, 2
je 0x49a909
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, esi
jmp 0x49a8a8
sub ecx, 0x2028
je case.0x49a8cb.11
sub ecx, 1
jne case.default.0x49a8cb
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, 1
jmp 0x49a8a8
mov eax, dword [esp + 0xe8]
lea ecx, [esi + esi]
add eax, ecx
cmp edi, eax
jb 0x49a943
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0x14]
cmp word [eax], cx
jne 0x49a943
cmp esi, 1
je 0x49a995
mov ecx, dword [esp + 0x20]
cmp word [eax + 2], cx
je 0x49a995
mov ecx, dword [esp + 0x44]
add edi, 2
add edx, 2
add ecx, 2
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], ecx
cmp edi, ebx
jae 0x49a995
mov ax, word [edi]
and ax, word [esp + 0x140]
cmp ax, word [esp + 0x144]
jne 0x49a830
add ecx, 2
add edi, 2
add edx, 2
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0x1c], edx
cmp edi, ebx
jb 0x49a837
cmp word [edi - 2], 0xd
jne 0x49aa08
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x49a9ad
cmp eax, 2
jne 0x49aa08
cmp edi, ebx
jae 0x49aa08
cmp word [edi], 0xa
jne 0x49aa08
add edi, 2
jmp 0x49aa08
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x49aa08
cmp edi, ebx
jae 0x49aa08
nop dword [eax + eax]
movzx edx, word [edi]
mov eax, 0xff
cmp edx, 0xff
cmova edx, eax
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + esi], al
jne 0x49aa08
add edi, 2
cmp edi, ebx
jb 0x49a9d0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x49aac0
cmp dword [esp + 0xfc], 0
jne 0x49aac0
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x49aa33
test byte [ecx + 4], 2
je 0x49aa33
mov eax, esi
sub eax, edi
sar eax, 1
cmp eax, dword [ecx + 0x28]
jb 0x49aa93
cmp dword [esp + 0x64], 0
je 0x49aac0
mov eax, esi
sub eax, edi
and eax, 0xfffffffe
cmp eax, 0x7d0
jge 0x49aac0
mov eax, dword [esp + 0x4c]
lea ecx, [edi + eax*2]
cmp ecx, dword [esp + 0x50]
jbe 0x49aac0
cmp ecx, esi
jae 0x49aa93
mov eax, dword [esp + 0x148]
cmp ax, word [esp + 0x14c]
je 0x49aa9a
nop
movzx eax, word [ecx]
mov ebx, ecx
add ecx, 2
mov dword [esp + 0x50], ebx
mov edx, eax
cmp ax, word [esp + 0x150]
je 0x49aabc
cmp dx, word [esp + 0x28]
je 0x49aabc
cmp ecx, esi
jb 0x49aa70
xor ebx, ebx
jmp 0x49ab4a
mov edx, dword [esp + 0x3c]
nop
mov ax, word [ecx]
mov ebx, ecx
add ecx, 2
mov dword [esp + 0x50], ebx
cmp ax, dx
je 0x49aabc
cmp ecx, esi
jb 0x49aaa0
xor ebx, ebx
jmp 0x49ab4a
cmp ebx, esi
jae 0x49aa93
mov edx, dword [esp + 0xe4]
lea eax, [esp + 0x70]
push 0
push 0
push eax
push 2
push edi
mov ecx, edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x10c], edi
mov dword [esp + 0x84], 0
mov dword [esp + 0x120], 0
mov dword [esp + 0x114], 0
call fcn.00491e70
add esp, 0x14
mov ebx, eax
cmp dword [esp + 0xd4], 0
je 0x49ab2a
mov eax, dword [esp + 0x54]
test eax, eax
cmove eax, dword [esp + 0xf8]
mov dword [esp + 0x54], eax
cmp ebx, 0xfffffc1d
jg 0x49ab77
je 0x49abb5
cmp ebx, 0xfffffc1a
jne 0x49ad8b
xor ebx, ebx
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x58], 0
je 0x49ab5d
push dword [esp + 0x7c]
call fcn.0049f222
add esp, 4
test ebx, ebx
je 0x49ae0c
cmp ebx, 0xfffffff4
je 0x49ae0c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xfffffc20
jg 0x49abad
je 0x49abb5
cmp ebx, 0xfffffc1e
je 0x49aba0
cmp ebx, 0xfffffc1f
jne 0x49ab46
mov edx, edi
mov dword [esp + 0xe0], 1
jmp 0x49abe3
mov edx, dword [esp + 0xf0]
cmp edx, edi
je 0x49abb5
jmp 0x49abe3
test ebx, ebx
jne 0x49ad86
mov eax, dword [esp + 0x10]
lea edx, [edi + 2]
mov dword [esp + 0xe0], 0
cmp edx, eax
jae 0x49abe3
mov ax, word [edx]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x49abe3
add edx, 2
mov ax, word [esp + 0x9e]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov ax, word [esp + 0x9c]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x40], ebx
je 0x49ad0a
cmp dword [esp + 0x88], ebx
je 0x49acd1
mov esi, dword [esp + 0xec]
cmp edi, esi
jae case.default.0x49ac97
movzx ecx, word [edi]
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x49ac4e
movzx eax, word [edi + 2]
and ecx, 0x3ff
and eax, 0x3ff
shl ecx, 0xa
or ecx, eax
add ecx, 0x10000
cmp dword [esp + 0x88], 2
jne 0x49ac85
cmp ecx, 0xa
je case.0x49ac97.10
cmp ecx, 0xd
jne case.default.0x49ac97
lea eax, [esi - 2]
cmp edi, eax
jae case.0x49ac97.10
cmp word [edi + 2], 0xa
mov esi, 2
je 0x49acb0
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, esi
jmp 0x49acc7
cmp ecx, 0x85
ja 0x49ac9e
je case.0x49ac97.10
add ecx, 0xfffffff6
cmp ecx, 3
ja case.default.0x49ac97
jmp dword [ecx*4 + 0x49af3c]
sub ecx, 0x2028
je case.0x49ac97.10
sub ecx, 1
jne case.default.0x49ac97
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, 1
jmp 0x49acc7
mov esi, dword [esp + 0x8c]
xor eax, eax
test eax, eax
jne 0x49ab46
jmp 0x49ad11
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0xec]
lea eax, [esi + esi]
sub ecx, eax
cmp edi, ecx
ja 0x49ad11
mov eax, dword [esp + 0x14]
cmp word [edi], ax
jne 0x49ad11
cmp esi, 1
je 0x49ab46
mov eax, dword [esp + 0x20]
cmp word [edi + 2], ax
je 0x49ab46
jmp 0x49ad11
mov esi, dword [esp + 0x8c]
mov edi, edx
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x68], ebx
jne 0x49ab46
mov eax, dword [esp + 0x10]
cmp edx, eax
ja 0x49ae05
cmp edx, dword [esp + 0x154]
jbe 0x49ad76
cmp word [edx - 2], 0xd
jne 0x49ad76
cmp edx, eax
jae 0x49ad76
cmp word [edx], 0xa
jne 0x49ad76
mov ecx, dword [esp + 0x24]
mov ebx, 0x800
test word [ecx], bx
jne 0x49ad76
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x49ad6b
cmp eax, 2
je 0x49ad6b
cmp esi, 2
jne 0x49ad72
lea edi, [edx + 2]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x120], 0
jmp 0x49a651
cmp ebx, 1
je 0x49ad97
cmp ebx, 0xfffffc19
jne 0x49ab46
cmp dword [esp + 0x58], 0
mov edi, dword [esp + 0x48]
je 0x49adec
mov esi, dword [esp + 0x7c]
cmp edi, 4
jl 0x49adc6
lea eax, [edi*4 - 8]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [ebp + 0x18]
add eax, 8
push eax
call fcn.0049cd60
add esp, 0xc
mov eax, dword [esp + 0xb0]
mov ecx, 1
cmp dword [esp + 0x100], edi
push esi
cmovg eax, ecx
mov dword [esp + 0xb4], eax
call fcn.0049f222
add esp, 4
cmp dword [esp + 0xb0], 0
mov ecx, dword [esp + 0x100]
je 0x49ae5e
cmp ecx, edi
jl 0x49ae5e
xor esi, esi
jmp 0x49ae67
mov esi, eax
jmp 0x49ab4a
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49ae33
cmp dword [ebp + 0x1c], 1
jle 0x49ae2c
sub eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x18]
sub esi, dword [ebp + 8]
sar eax, 1
sar esi, 1
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov eax, 0xfffffff4
jmp 0x49ae36
or eax, 0xffffffff
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x49af12
test byte [edx], 0x20
je 0x49af12
mov edx, dword [edx + 0x18]
mov ecx, dword [esp + 0x124]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
sar esi, 1
mov eax, dword [esp + 0x18]
movzx edi, word [eax + 0x10]
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp + 0x18]
sar eax, 1
cmp eax, edi
jg 0x49aeb0
test edx, edx
je 0x49aeb0
lea eax, [edi*2 + 2]
cmp eax, dword [ebp + 0x1c]
lea edi, [edx + ecx*4]
cmovg eax, dword [esp + 0x2c]
xor ebx, ebx
lea eax, [edx + eax*4]
mov ecx, eax
sub ecx, edi
add ecx, 3
shr ecx, 2
cmp edi, eax
cmova ecx, ebx
test ecx, ecx
je 0x49aeb0
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x1c], 2
jge 0x49aeba
xor esi, esi
jmp 0x49aedf
mov eax, dword [esp + 0xf0]
sub eax, dword [esp + 0xe8]
sar eax, 1
mov dword [edx], eax
mov eax, dword [esp + 0xf4]
sub eax, dword [esp + 0xe8]
sar eax, 1
mov dword [edx + 4], eax
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x49aef8
test byte [edx], 0x20
je 0x49aef8
mov edx, dword [edx + 0x18]
mov ecx, dword [esp + 0x120]
mov dword [edx], ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffffe8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret