Function at 0x49a520
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 0x49a5d4
test edx, edx
mov edx, dword [ebp + 0xc]
jne 0x49a5d7
test ecx, ecx
jne 0x49a5d7
cmp edx, 0xfffffc19
jne 0x49a5d7
cmp esi, edx
jne 0x49a5d7
push ecx
push ecx
push ecx
push ecx
push ecx
xor edx, edx
call fcn.00492590
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 0x49a5ec
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x49b62d
test ecx, ecx
je 0x49b62d
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x1c]
jne 0x49a60d
test eax, eax
jg 0x49b62d
test eax, eax
jns 0x49a61d
mov eax, 0xfffffff1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
js 0x49b621
cmp esi, edx
jg 0x49b621
mov ecx, dword [ebx]
cmp ecx, 0x50435245
je 0x49a651
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 0x49a665
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 0x49a682
mov eax, 2
jmp 0x49a68a
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 0x49a6dc
test esi, esi
jle 0x49a6dc
cmp esi, edx
jge 0x49a6dc
mov eax, dword [ebp + 8]
mov ecx, 0xfc00
mov ax, word [eax + esi*2]
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x49a6dc
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 0x49a777
mov ecx, dword [edx]
test cl, 1
je 0x49a744
mov eax, dword [edx + 4]
mov dword [esp + 0x60], eax
test cl, 2
je 0x49a750
mov eax, dword [edx + 8]
mov dword [esp + 0x74], eax
test cl, 0x10
je 0x49a75c
mov eax, dword [edx + 0x14]
mov dword [esp + 0x78], eax
test cl, 4
je 0x49a76b
mov eax, dword [edx + 0xc]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x2c]
test cl, 8
je 0x49a777
mov ebx, dword [edx + 0x10]
mov ecx, dword [esp + 0x18]
test ebx, ebx
mov edi, dword [esp + 0x18]
mov edx, 0x4bf5f0
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 0x49a8f2
cmp eax, 0x800000
je 0x49a90b
cmp eax, 0x1000000
jne 0x49a9c3
mov dword [esp + 0xd8], 0
jmp 0x49a916
test ebx, 0x1800000
je 0x49a90b
mov eax, ebx
shr eax, 0x17
and eax, 1
mov dword [esp + 0xd8], eax
jmp 0x49a916
mov dword [esp + 0xd8], 1
test esi, 0x700000
mov eax, esi
cmove eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x49a9b5
je 0x49a985
test eax, eax
je 0x49a9cf
cmp eax, 0x100000
je 0x49a950
cmp eax, 0x200000
jne 0x49a9c3
mov eax, 0xa
jmp 0x49a955
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 0x49aa0e
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 0x49aa0e
cmp eax, 0x400000
je 0x49a9e8
cmp eax, 0x500000
je 0x49a9cf
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 0x49a9ff
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 0x49aa37
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 0xc]
test eax, 0x200
je 0x49aa37
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 0x49aad3
mov ecx, eax
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x49aad3
inc ecx
lea eax, [ecx + ecx*2]
mov dword [esp + 0x2c], eax
shl eax, 2
push eax
call fcn.0049f95d
mov ebx, eax
add esp, 4
mov dword [esp + 0x7c], ebx
test ebx, ebx
jne 0x49aaa6
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 0x49aae0
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 0x49ab91
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 0x49ab61
nop word [eax + eax]
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, edx
jae 0x49ab50
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 0x49acf0
mov edx, dword [esp + 0x18]
movzx eax, word [edx + 0xc]
test al, 0x10
je 0x49acbb
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 0x49ace7
mov eax, 0xff
cmp dx, ax
ja 0x49ac84
movzx edx, byte [ebx + ecx]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x34]
cmp dx, 0x7f
ja 0x49ac88
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 0x49ad3f
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 0x49ad43
mov eax, 0xff
cmp word [esp + 0x28], ax
ja 0x49ad00
movzx eax, byte [ebx + ecx]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
cmp dx, 0x7f
jbe 0x49ad47
jmp 0x49ad04
mov edx, dword [esp + 0x34]
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4ccc30]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4c0250]
mov ax, word [eax*8 + 0x4cbb54]
add ax, dx
movzx eax, ax
mov dword [esp + 0x30], eax
jmp 0x49abfd
cmp dword [esp + 0x38], 0
jne 0x49acf0
mov eax, dword [esp + 0x60]
test eax, eax
je 0x49acf0
mov ebx, dword [esp + 0xa8]
xor edx, edx
test byte [eax + 4], 1
je 0x49ace0
add eax, 8
mov dword [esp + 0x6c], eax
xor eax, eax
jmp 0x49abfd
mov edx, dword [esp + 0x34]
jmp 0x49abf9
mov ebx, dword [esp + 0xa8]
xor edx, edx
xor eax, eax
jmp 0x49abfd
mov edx, dword [esp + 0x3c]
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x4ccc30]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x4c0250]
mov ax, word [eax*8 + 0x4cbb54]
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 0x49ad47
xor edx, edx
jmp 0x49ad47
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 0x49ae93
mov edx, dword [esp + 0xec]
mov ebx, edi
cmp edi, edx
jae 0x49ae93
mov edi, dword [esp + 0x88]
test edi, edi
je 0x49ae43
cmp ebx, edx
jae case.default.0x49ae15
movzx eax, word [ebx]
mov ecx, eax
and ecx, 0xfc00
cmp ecx, 0xd800
jne 0x49add2
movzx ecx, word [ebx + 2]
and eax, 0x3ff
and ecx, 0x3ff
shl eax, 0xa
or eax, ecx
add eax, 0x10000
cmp edi, 2
jne 0x49ae04
cmp eax, 0xa
je case.0x49ae15.10
cmp eax, 0xd
jne case.default.0x49ae15
lea eax, [edx - 2]
cmp ebx, eax
jae case.0x49ae15.10
cmp word [ebx + 2], 0xa
mov esi, 2
je 0x49ae2d
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, esi
jmp 0x49ae3d
cmp eax, 0x85
ja 0x49ae1c
je case.0x49ae15.10
add eax, 0xfffffff6
cmp eax, 3
ja case.default.0x49ae15
jmp dword [eax*4 + 0x49b63c]
sub eax, 0x2028
je case.0x49ae15.10
sub eax, 1
jne case.default.0x49ae15
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, 1
jmp 0x49ae3d
xor eax, eax
test eax, eax
jne 0x49ae8f
jmp 0x49ae66
lea eax, [esi + esi]
mov ecx, edx
sub ecx, eax
cmp ebx, ecx
ja 0x49ae66
mov eax, dword [esp + 0x14]
cmp word [ebx], ax
jne 0x49ae66
cmp esi, 1
je 0x49ae8f
mov eax, dword [esp + 0x20]
cmp word [ebx + 2], ax
je 0x49ae8f
add ebx, 2
cmp ebx, dword [esp + 0x10]
jae 0x49ae87
mov ax, word [ebx]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x49ae87
add ebx, 2
cmp ebx, edx
jb 0x49ad96
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 0x49b120
cmp dword [esp + 0x4c], 0
je 0x49af15
cmp edi, ebx
jae 0x49b128
mov eax, dword [esp + 0x134]
cmp ax, word [esp + 0x138]
je 0x49aef5
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
movzx eax, word [edi]
cmp ax, cx
je 0x49b128
cmp ax, dx
je 0x49b128
add edi, 2
cmp edi, ebx
jb 0x49aed4
jmp 0x49b128
mov eax, dword [esp + 0x34]
nop dword [eax]
cmp word [edi], ax
je 0x49b128
add edi, 2
cmp edi, ebx
jb 0x49af00
jmp 0x49b128
cmp dword [esp + 0x38], 0
je 0x49b0dc
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0xe8]
add eax, ecx
cmp edi, eax
jbe 0x49b128
cmp edi, ebx
jae 0x49b0b5
lea edx, [edi - 2]
lea eax, [edi - 4]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], eax
jmp 0x49af57
mov ecx, dword [esp + 0xe8]
cmp dword [esp + 0x88], 0
je 0x49b037
cmp edi, ecx
jbe case.default.0x49afeb
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
mov ecx, eax
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x49af87
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 0x49afb2
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 0x49afd9
cmp ecx, 0xa
je case.0x49afeb.10
cmp ecx, 0xd
je case.0x49afeb.11
xor eax, eax
test eax, eax
jne 0x49b0b5
mov edx, dword [esp + 0x1c]
jmp 0x49b063
cmp ecx, 0x85
ja 0x49b017
je case.0x49afeb.11
add ecx, 0xfffffff6
cmp ecx, 3
ja case.default.0x49afeb
jmp dword [ecx*4 + 0x49b64c]
cmp edx, dword [esp + 0xe8]
jbe case.0x49afeb.11
cmp word [edx - 2], 0xd
mov esi, 2
je 0x49b029
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, esi
jmp 0x49afc8
sub ecx, 0x2028
je case.0x49afeb.11
sub ecx, 1
jne case.default.0x49afeb
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, 1
jmp 0x49afc8
mov eax, dword [esp + 0xe8]
lea ecx, [esi + esi]
add eax, ecx
cmp edi, eax
jb 0x49b063
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0x14]
cmp word [eax], cx
jne 0x49b063
cmp esi, 1
je 0x49b0b5
mov ecx, dword [esp + 0x20]
cmp word [eax + 2], cx
je 0x49b0b5
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 0x49b0b5
mov ax, word [edi]
and ax, word [esp + 0x140]
cmp ax, word [esp + 0x144]
jne 0x49af50
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 0x49af57
cmp word [edi - 2], 0xd
jne 0x49b128
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x49b0cd
cmp eax, 2
jne 0x49b128
cmp edi, ebx
jae 0x49b128
cmp word [edi], 0xa
jne 0x49b128
add edi, 2
jmp 0x49b128
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x49b128
cmp edi, ebx
jae 0x49b128
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 0x49b128
add edi, 2
cmp edi, ebx
jb 0x49b0f0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x49b1e0
cmp dword [esp + 0xfc], 0
jne 0x49b1e0
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
test ecx, ecx
je 0x49b153
test byte [ecx + 4], 2
je 0x49b153
mov eax, esi
sub eax, edi
sar eax, 1
cmp eax, dword [ecx + 0x28]
jb 0x49b1b3
cmp dword [esp + 0x64], 0
je 0x49b1e0
mov eax, esi
sub eax, edi
and eax, 0xfffffffe
cmp eax, 0x7d0
jge 0x49b1e0
mov eax, dword [esp + 0x4c]
lea ecx, [edi + eax*2]
cmp ecx, dword [esp + 0x50]
jbe 0x49b1e0
cmp ecx, esi
jae 0x49b1b3
mov eax, dword [esp + 0x148]
cmp ax, word [esp + 0x14c]
je 0x49b1ba
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 0x49b1dc
cmp dx, word [esp + 0x28]
je 0x49b1dc
cmp ecx, esi
jb 0x49b190
xor ebx, ebx
jmp 0x49b26a
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 0x49b1dc
cmp ecx, esi
jb 0x49b1c0
xor ebx, ebx
jmp 0x49b26a
cmp ebx, esi
jae 0x49b1b3
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.00492590
add esp, 0x14
mov ebx, eax
cmp dword [esp + 0xd4], 0
je 0x49b24a
mov eax, dword [esp + 0x54]
test eax, eax
cmove eax, dword [esp + 0xf8]
mov dword [esp + 0x54], eax
cmp ebx, 0xfffffc1d
jg 0x49b297
je 0x49b2d5
cmp ebx, 0xfffffc1a
jne 0x49b4ab
xor ebx, ebx
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x58], 0
je 0x49b27d
push dword [esp + 0x7c]
call fcn.0049f942
add esp, 4
test ebx, ebx
je 0x49b52c
cmp ebx, 0xfffffff4
je 0x49b52c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xfffffc20
jg 0x49b2cd
je 0x49b2d5
cmp ebx, 0xfffffc1e
je 0x49b2c0
cmp ebx, 0xfffffc1f
jne 0x49b266
mov edx, edi
mov dword [esp + 0xe0], 1
jmp 0x49b303
mov edx, dword [esp + 0xf0]
cmp edx, edi
je 0x49b2d5
jmp 0x49b303
test ebx, ebx
jne 0x49b4a6
mov eax, dword [esp + 0x10]
lea edx, [edi + 2]
mov dword [esp + 0xe0], 0
cmp edx, eax
jae 0x49b303
mov ax, word [edx]
mov ecx, 0xfc00
and ax, cx
mov ecx, 0xdc00
cmp ax, cx
jne 0x49b303
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 0x49b42a
cmp dword [esp + 0x88], ebx
je 0x49b3f1
mov esi, dword [esp + 0xec]
cmp edi, esi
jae case.default.0x49b3b7
movzx ecx, word [edi]
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x49b36e
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 0x49b3a5
cmp ecx, 0xa
je case.0x49b3b7.10
cmp ecx, 0xd
jne case.default.0x49b3b7
lea eax, [esi - 2]
cmp edi, eax
jae case.0x49b3b7.10
cmp word [edi + 2], 0xa
mov esi, 2
je 0x49b3d0
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, esi
jmp 0x49b3e7
cmp ecx, 0x85
ja 0x49b3be
je case.0x49b3b7.10
add ecx, 0xfffffff6
cmp ecx, 3
ja case.default.0x49b3b7
jmp dword [ecx*4 + 0x49b65c]
sub ecx, 0x2028
je case.0x49b3b7.10
sub ecx, 1
jne case.default.0x49b3b7
mov esi, 1
mov dword [esp + 0x8c], esi
mov eax, 1
jmp 0x49b3e7
mov esi, dword [esp + 0x8c]
xor eax, eax
test eax, eax
jne 0x49b266
jmp 0x49b431
mov esi, dword [esp + 0x8c]
mov ecx, dword [esp + 0xec]
lea eax, [esi + esi]
sub ecx, eax
cmp edi, ecx
ja 0x49b431
mov eax, dword [esp + 0x14]
cmp word [edi], ax
jne 0x49b431
cmp esi, 1
je 0x49b266
mov eax, dword [esp + 0x20]
cmp word [edi + 2], ax
je 0x49b266
jmp 0x49b431
mov esi, dword [esp + 0x8c]
mov edi, edx
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x68], ebx
jne 0x49b266
mov eax, dword [esp + 0x10]
cmp edx, eax
ja 0x49b525
cmp edx, dword [esp + 0x154]
jbe 0x49b496
cmp word [edx - 2], 0xd
jne 0x49b496
cmp edx, eax
jae 0x49b496
cmp word [edx], 0xa
jne 0x49b496
mov ecx, dword [esp + 0x24]
mov ebx, 0x800
test word [ecx], bx
jne 0x49b496
mov eax, dword [esp + 0x88]
cmp eax, 1
je 0x49b48b
cmp eax, 2
je 0x49b48b
cmp esi, 2
jne 0x49b492
lea edi, [edx + 2]
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
mov dword [esp + 0x120], 0
jmp 0x49ad71
cmp ebx, 1
je 0x49b4b7
cmp ebx, 0xfffffc19
jne 0x49b266
cmp dword [esp + 0x58], 0
mov edi, dword [esp + 0x48]
je 0x49b50c
mov esi, dword [esp + 0x7c]
cmp edi, 4
jl 0x49b4e6
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.0049d480
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.0049f942
add esp, 4
cmp dword [esp + 0xb0], 0
mov ecx, dword [esp + 0x100]
je 0x49b57e
cmp ecx, edi
jl 0x49b57e
xor esi, esi
jmp 0x49b587
mov esi, eax
jmp 0x49b26a
mov eax, dword [esp + 0x54]
test eax, eax
je 0x49b553
cmp dword [ebp + 0x1c], 1
jle 0x49b54c
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 0x49b556
or eax, 0xffffffff
mov edx, dword [esp + 0x5c]
test edx, edx
je 0x49b632
test byte [edx], 0x20
je 0x49b632
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 0x49b5d0
test edx, edx
je 0x49b5d0
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 0x49b5d0
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x1c], 2
jge 0x49b5da
xor esi, esi
jmp 0x49b5ff
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 0x49b618
test byte [edx], 0x20
je 0x49b618
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