Function at 0x4cfdd0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x6a9b98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xd4], eax
xor eax, eax
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0x10c], eax
xor ah, ah
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0x114], 0
mov byte [ebp - 0xbd], al
mov byte [ebp - 0xad], al
mov byte [ebp - 0xbe], ah
mov byte [ebp - 0xb5], ah
mov dword [ebp - 0xe8], 0
mov edi, dword [ebp + 0x20]
test ebx, ebx
jne 0x4cfe6e
test esi, esi
mov eax, 0x52320e
cmovne eax, ebx
mov ebx, eax
mov dword [ebp - 0xc8], eax
test dword [ebp + 0x18], 0x1ffb9fc0
jne 0x4d0f10
test ecx, ecx
je 0x4d0efa
test ebx, ebx
je 0x4d0efa
test edx, edx
je 0x4d0efa
mov eax, dword [ebp - 0xd4]
add eax, ebx
mov esi, eax
mov dword [ebp - 0x118], eax
lea eax, [esi - 1]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0xcc]
cmp eax, 0xffffffff
jne 0x4cfed6
push ebx
call fcn.004d0fd0
mov edx, dword [ebp - 0xc4]
add esp, 4
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0x114], 1
add eax, ebx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xcc]
jbe 0x4cff14
pop edi
pop esi
mov eax, 0xffffffdf
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xbc]
cmp dword [ebx + 0x38], 0x50435245
je 0x4cff39
pop edi
pop esi
mov eax, 0xffffffe1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x48]
mov eax, ecx
and al, 7
cmp al, 1
je 0x4cff5a
pop edi
pop esi
mov eax, 0xffffffe0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebx + 0x40]
mov eax, ebx
shr ecx, 0xe
and ecx, 0xc
shr eax, 0x13
or dword [ebp + 0x18], ecx
and eax, 1
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xd0], ebx
mov dword [ebp - 0xb4], eax
test cl, 0x20
je 0x4cff89
mov eax, 2
jmp 0x4cff91
mov eax, ecx
shr eax, 4
and eax, 1
movzx eax, ax
mov word [ebp - 0x6c], ax
test ax, ax
je 0x4cffac
mov eax, ebx
or eax, ecx
test eax, 0x20000000
jne 0x4d0f10
test edi, edi
je 0x4cffd4
cmp dword [edi + 0x1c], 0xffffffff
je 0x4cffd4
test ebx, 0x800000
jne 0x4cffd4
pop edi
pop esi
mov eax, 0xffffffc8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
test byte [edx + 0x31], 1
je 0x4cfff5
push dword [edx + 8]
mov eax, dword [edx + 4]
push dword [edx + 0x10]
call eax
mov edx, dword [ebp - 0xc4]
add esp, 8
mov ecx, dword [ebp + 0x18]
and byte [edx + 0x31], 0xfe
cmp dword [ebp - 0xb4], 0
lea eax, [edx + 0x2c]
mov dword [ebp - 0xd8], eax
mov dword [eax], 0
mov eax, dword [ebp - 0xc8]
mov dword [edx + 0x10], 0
mov dword [ebp - 0x58], eax
je 0x4d01d3
test ecx, 0x40000000
je 0x4d0035
test ebx, 0x4000000
je 0x4d01d3
mov ecx, dword [ebp - 0xac]
mov eax, ebx
xor edx, edx
and eax, 0x4000000
cmp esi, ecx
jae 0x4d0062
test eax, eax
je 0x4d0180
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d0062
inc esi
mov edx, 1
cmp esi, ecx
jb 0x4d0050
mov ecx, esi
mov dword [ebp - 0x58], ecx
test edx, edx
jne 0x4d00a8
mov eax, dword [ebp - 0xbc]
movzx edx, word [eax + 0x64]
test edx, edx
je 0x4d00a8
mov edi, dword [ebp - 0xc8]
nop
cmp ecx, edi
jbe 0x4d00a5
dec ecx
mov dword [ebp - 0x58], ecx
cmp ecx, edi
jbe 0x4d00a0
nop dword [eax]
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x4d00a0
dec ecx
mov dword [ebp - 0x58], ecx
cmp ecx, edi
ja 0x4d0090
sub edx, 1
jne 0x4d0080
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp - 0xcc]
push dword [ebp - 0xd8]
sub eax, ecx
add eax, dword [ebp - 0xc8]
push eax
push ecx
call fcn.004d4a00
mov ecx, dword [ebp - 0xc4]
add esp, 0xc
mov dword [ecx + 0x34], eax
test eax, eax
je 0x4d0172
nop word [eax + eax]
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0xc8]
sub ecx, edx
mov eax, dword [eax]
add eax, ecx
mov ecx, dword [ebp - 0xd8]
mov dword [ecx], eax
test ebx, 0x4000000
je 0x4d01b9
mov ecx, dword [ebp - 0xc4]
cmp dword [ecx + 0x34], 0
jg 0x4d01b9
add edx, eax
mov dword [ebp - 0xac], edx
cmp edx, esi
jae 0x4d01ad
lea ecx, [edx + 1]
mov dword [ebp - 0x58], ecx
cmp ecx, esi
jae 0x4d0143
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x4d0143
inc ecx
mov dword [ebp - 0x58], ecx
cmp ecx, esi
jb 0x4d0133
mov eax, dword [ebp - 0xcc]
push dword [ebp - 0xd8]
sub eax, ecx
add eax, dword [ebp - 0xc8]
push eax
push ecx
call fcn.004d4a00
mov ecx, dword [ebp - 0xc4]
add esp, 0xc
mov dword [ecx + 0x34], eax
test eax, eax
jne 0x4d00e0
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xac], edx
jmp 0x4d01d9
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d0062
xor eax, eax
cmp eax, dword [ebp - 0xd4]
pop edi
sbb eax, eax
and eax, 0xfffffff2
pop esi
add eax, 0xffffffea
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xe8], 2
jmp 0x4d01d9
mov eax, dword [ebp - 0xc4]
pop edi
pop esi
pop ebx
mov eax, dword [eax + 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xac]
test edi, edi
jne 0x4d01ec
mov eax, dword [ebp - 0xbc]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
jmp 0x4d01f3
movq xmm0, qword [edi]
mov eax, dword [edi + 8]
test edi, edi
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xbc]
mov ebx, 0x503038
cmovne ebx, edi
movq qword [ebp - 0xa8], xmm0
mov ecx, dword [eax + 0x40]
mov edi, ecx
or edi, dword [ebp + 0x18]
shr edi, 0x1f
mov dword [ebp - 0x104], edi
test edi, edi
jne 0x4d0238
mov dword [ebp - 0x100], 1
test ecx, 0x100
jne 0x4d0242
mov dword [ebp - 0x100], 0
mov eax, dword [eax + 0x48]
cmp dword [ebx + 0x1c], 0xffffffff
mov edi, dword [ebp - 0xcc]
cmovne edi, dword [ebx + 0x1c]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x10], eax
mov eax, edx
mov dword [ebp - 0xf8], edi
mov edi, dword [ebp - 0xc8]
sub eax, edi
add dword [ebp - 0xf8], edi
mov dword [ebp - 0x13c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0xf4]
mov eax, edx
shr eax, 0xc
and eax, 1
mov dword [ebp - 0x158], 2
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x5c], edi
cmp word [eax + 0x64], 0
ja 0x4d02e9
test edx, 0x2000
jne 0x4d02e9
xor eax, eax
jmp 0x4d02ee
mov eax, 1
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0
movzx edx, word [eax + 0x6e]
lea edi, [eax + 0x70]
movzx eax, word [eax + 0x6c]
mov ecx, eax
mov dword [ebp - 0x64], edi
imul ecx, edx
mov word [ebp - 0x66], ax
mov dword [ebp - 0x40], 0
mov word [ebp - 0x68], dx
mov dword [ebp - 0x1c], 0
add ecx, edi
mov edi, dword [ebp - 0xbc]
mov dword [ebp - 0x60], ecx
mov ax, word [edi + 0x60]
mov word [ebp - 0x6a], ax
movzx eax, word [edi + 0x62]
dec eax
cmp eax, 5
ja case.default.0x4d0355
jmp dword [eax*4 + 0x4d0f28]
mov dword [ebp - 0x18], 1
mov byte [ebp - 0x14], 0xd
jmp 0x4d03a2
mov dword [ebp - 0x18], 1
mov byte [ebp - 0x14], 0xa
jmp 0x4d03a2
mov dword [ebp - 0x18], 1
mov byte [ebp - 0x14], 0
jmp 0x4d03a2
mov dword [ebp - 0x18], 2
mov word [ebp - 0x14], 0xa0d
jmp 0x4d03a2
mov dword [ebp - 0x1c], 1
jmp 0x4d03a2
mov dword [ebp - 0x1c], 2
movzx eax, word [edi + 0x68]
mov edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
lea eax, [eax*8 + 0x5b]
and eax, 0xfffffffc
cmp edx, dword [edi + 0x4c]
mov dword [ebp - 0xfc], eax
cmovae edx, dword [edi + 0x4c]
cmp ecx, dword [edi + 0x50]
mov dword [ebp - 0x9c], edx
cmovae ecx, dword [edi + 0x50]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebx + 0x28]
cmp ecx, dword [edi + 0x54]
cmovae ecx, dword [edi + 0x54]
mov dword [ebp - 0x94], ecx
mov ecx, eax
mov eax, 0x5000
lea edi, [ecx + ecx*4]
add edi, edi
cmp edi, eax
cmovb edi, eax
mov eax, edi
shr eax, 0xa
cmp eax, edx
jbe 0x4d041f
mov edi, edx
shl edi, 0xa
cmp edi, ecx
jae 0x4d041f
pop edi
pop esi
mov eax, 0xffffffc1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc4]
cmp dword [ebx + 0x1c], edi
jae 0x4d0469
push dword [ebx + 8]
mov eax, dword [ebx + 4]
push dword [ebx + 0x18]
call eax
push dword [ebx + 8]
mov eax, dword [ebx]
push edi
call eax
add esp, 0x10
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x4d0460
mov dword [ebx + 0x1c], eax
pop edi
pop esi
mov eax, 0xffffffd0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xfc]
mov dword [ebx + 0x1c], edi
lea eax, [ecx - 0x58]
push eax
mov eax, dword [ebx + 0x18]
add eax, 0x58
push 0xff
push eax
call fcn.004dd8b1
mov edx, dword [ebp - 0xbc]
add esp, 0xc
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x48]
mov dword [ebp - 0x80], eax
lea edi, [eax + 0x100]
add eax, 0x340
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], eax
test cl, 0x10
je 0x4d05b5
mov ah, byte [edx + 0x58]
mov dword [ebp - 0xe0], 1
mov al, ah
mov byte [ebp - 0xad], ah
mov byte [ebp - 0xbd], al
test cl, 0x20
je 0x4d05de
movzx edx, ah
mov bl, byte [edx + edi]
mov byte [ebp - 0xad], bl
mov ebx, dword [ebp - 0xd0]
cmp al, 0x7f
jbe 0x4d0528
test ebx, 0x20000
je 0x4d0528
cmp dword [ebp - 0xb4], 0
jne 0x4d0528
mov eax, edx
and edx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x508698]
shl eax, 7
add eax, edx
movzx eax, word [eax*2 + 0x50ca98]
lea eax, [eax + eax*2]
mov ah, byte [eax*4 + 0x5043e4]
add ah, byte [ebp - 0xbd]
mov byte [ebp - 0xad], ah
mov edx, dword [ebp - 0xbc]
test cl, cl
jns 0x4d05e9
mov al, byte [edx + 0x5c]
mov dword [ebp - 0x10c], 1
mov dl, al
mov byte [ebp - 0xb5], al
mov byte [ebp - 0xbe], dl
test ecx, 0x100
je 0x4d05e9
movzx ecx, al
cmp dl, 0x7f
mov edx, dword [ebp - 0xb4]
mov al, byte [edi + ecx]
mov byte [ebp - 0xb5], al
jbe 0x4d05ef
test ebx, 0x20000
je 0x4d05ef
test edx, edx
jne 0x4d05ef
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x508698]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x50ca98]
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x5043e4]
add al, byte [ebp - 0xbe]
mov byte [ebp - 0xb5], al
jmp 0x4d05ef
test dword [ebp - 0xf4], 0x200
jne 0x4d05de
mov ebx, dword [ebp - 0xd0]
test cl, 0x40
je 0x4d052e
lea eax, [edx + 0x14]
mov dword [ebp - 0xdc], eax
jmp 0x4d052e
mov ebx, dword [ebp - 0xd0]
jmp 0x4d052e
mov edx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0xac]
mov eax, dword [ebp - 0x54]
nop dword [eax + eax]
xor ecx, ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xec], ecx
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xbc]
test dword [ebx + 0x40], 0x10000
jne 0x4d0b74
cmp dword [ebp - 0x100], 0
je 0x4d06c7
mov ebx, dword [ebp - 0xac]
mov edi, esi
cmp esi, ebx
jae 0x4d06c1
test edx, edx
mov edx, dword [ebp - 0x1c]
je 0x4d07e4
nop word [eax + eax]
test edx, edx
je 0x4d068c
mov eax, dword [ebp - 0x54]
cmp edi, eax
jae 0x4d06a6
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push edi
call fcn.004d2bc0
add esp, 0x14
test eax, eax
jne 0x4d06c1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x4d06a6
sub eax, ecx
cmp edi, eax
ja 0x4d06a6
mov al, byte [edi]
cmp al, byte [ebp - 0x14]
jne 0x4d06a6
cmp ecx, 1
je 0x4d06c1
mov al, byte [edi + 1]
cmp al, byte [ebp - 0x13]
je 0x4d06c1
inc edi
cmp edi, ebx
jae 0x4d06c1
nop dword [eax + eax]
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x4d07dc
inc edi
cmp edi, ebx
jb 0x4d06b0
mov dword [ebp - 0xac], edi
cmp dword [ebp - 0x104], 0
je 0x4d0844
mov ecx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xdc]
test ecx, ecx
jne 0x4d06e8
test ebx, ebx
je 0x4d0735
cmp esi, edi
sbb eax, eax
neg eax
cmp esi, edi
jae 0x4d072d
mov al, byte [esi]
test ecx, ecx
je 0x4d0708
cmp al, byte [ebp - 0xbd]
je 0x4d0735
cmp al, byte [ebp - 0xad]
je 0x4d0735
test ebx, ebx
je case.0x4d0c21.997
movzx edx, al
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
mov eax, 0
setne al
test eax, eax
je case.0x4d0c21.997
mov ecx, dword [ebp - 0x54]
cmp word [ebp - 0x6c], 0
mov edi, ecx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xac], edi
jne 0x4d0b76
movzx eax, word [edx + 0x66]
sub ecx, esi
cmp ecx, eax
jl case.0x4d0c21.997
mov edi, dword [ebp - 0xe0]
add edi, esi
cmp dword [ebp - 0x10c], 0
je 0x4d0b76
cmp edi, dword [ebp - 0x110]
jbe 0x4d0b76
cmp ecx, 0x1388
jb 0x4d07a1
cmp dword [ebp - 0x104], 0
jne 0x4d0b76
cmp ecx, 0x4c4b40
jae 0x4d0b76
mov al, byte [ebp - 0xbe]
movzx ecx, al
cmp al, byte [ebp - 0xb5]
je 0x4d0b45
mov ebx, dword [ebp - 0x54]
sub ebx, edi
push ebx
push ecx
push edi
call fcn.004dd8d5
add esp, 0xc
test eax, eax
jne 0x4d0b5d
movzx eax, byte [ebp - 0xb5]
push ebx
push eax
jmp 0x4d0b4c
mov eax, dword [ebp - 0x54]
jmp 0x4d0660
test edx, edx
je 0x4d0814
mov eax, dword [ebp - 0x54]
cmp edi, eax
jae 0x4d0836
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push edi
call fcn.004d2bc0
add esp, 0x14
test eax, eax
jne 0x4d06c1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x4d0836
sub eax, ecx
cmp edi, eax
ja 0x4d0836
mov al, byte [edi]
cmp al, byte [ebp - 0x14]
jne 0x4d0836
cmp ecx, 1
je 0x4d06c1
mov al, byte [edi + 1]
cmp al, byte [ebp - 0x13]
je 0x4d06c1
inc edi
cmp edi, ebx
jae 0x4d06c1
mov eax, dword [ebp - 0x54]
jmp 0x4d07e4
cmp dword [ebp - 0xe0], 0
je 0x4d09b3
mov al, byte [ebp - 0xbd]
mov ebx, edi
mov dl, byte [ebp - 0xad]
sub ebx, esi
cmp al, dl
je 0x4d0907
mov ecx, dword [ebp - 0x108]
test ecx, ecx
je 0x4d088b
cmp esi, ecx
ja 0x4d088b
mov eax, dword [ebp - 0xac]
mov edi, ecx
cmp ecx, eax
mov ecx, 0
cmove edi, ecx
jmp 0x4d08b4
push ebx
movzx eax, al
push eax
push esi
call fcn.004dd8d5
mov dl, byte [ebp - 0xad]
mov edi, eax
mov eax, dword [ebp - 0xac]
add esp, 0xc
test edi, edi
mov ecx, edi
cmove ecx, eax
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp - 0xec]
test ecx, ecx
je 0x4d08cd
cmp esi, ecx
ja 0x4d08cd
xor edx, edx
mov esi, ecx
cmp ecx, eax
cmove esi, edx
jmp 0x4d08f0
push ebx
movzx eax, dl
push eax
push esi
call fcn.004dd8d5
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0xac]
test esi, esi
mov ecx, esi
cmove ecx, eax
mov dword [ebp - 0xec], ecx
test edi, edi
jne 0x4d08fb
test esi, esi
cmove esi, eax
jmp 0x4d091c
test esi, esi
je 0x4d0903
cmp edi, esi
jae 0x4d091c
mov esi, edi
jmp 0x4d091c
push ebx
movzx eax, al
push eax
push esi
call fcn.004dd8d5
mov esi, eax
add esp, 0xc
test esi, esi
cmove esi, edi
cmp word [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x54]
jne 0x4d0738
cmp esi, ecx
jb 0x4d0738
xor ebx, ebx
cmp dword [ebp - 0xb4], 0
mov edi, dword [ebp - 0xac]
je 0x4d0db5
mov ecx, dword [ebp - 0xe4]
cmp edi, ecx
je 0x4d0db5
test ebx, ebx
je 0x4d0962
cmp ebx, 0xfffffffe
jne 0x4d0db5
mov ebx, dword [ebp - 0xd8]
lea esi, [edi + 1]
cmp esi, ecx
jae 0x4d0981
nop
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d0d39
inc esi
cmp esi, ecx
jb 0x4d0970
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xbc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x3c]
mov byte [edx + 0x30], 0
mov dword [edx + 0x14], eax
or ebx, 0xffffffff
pop edi
pop esi
mov dword [edx + 0x34], ebx
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
test dword [ebp - 0xf4], 0x200
je 0x4d0b07
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x5c]
add eax, edx
cmp esi, eax
jbe 0x4d0735
cmp esi, edi
jae 0x4d0ad2
mov ebx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x4d0a6f
mov ecx, dword [ebp - 0xac]
test edi, edi
je 0x4d0a23
cmp esi, edx
jbe 0x4d0a59
push ebx
lea eax, [ebp - 0x18]
push eax
push edx
push edi
push esi
call fcn.004d2d30
add esp, 0x14
test eax, eax
jne 0x4d0acc
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xac]
jmp 0x4d0a59
mov ebx, dword [ebp - 0x18]
lea eax, [edx + ebx]
cmp esi, eax
jb 0x4d0a53
mov ecx, esi
sub ecx, ebx
mov al, byte [ecx]
cmp al, byte [ebp - 0x14]
jne 0x4d0a4d
cmp ebx, 1
je 0x4d0acc
mov al, byte [ecx + 1]
cmp al, byte [ebp - 0x13]
je 0x4d0acc
mov ecx, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb4]
inc esi
cmp esi, ecx
jae 0x4d0acc
nop
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d09f5
inc esi
cmp esi, ecx
jb 0x4d0a60
jmp 0x4d0acc
mov eax, dword [ebp - 0xac]
test edi, edi
je 0x4d0a99
cmp esi, edx
jbe 0x4d0ac7
push ebx
lea eax, [ebp - 0x18]
push eax
push edx
push edi
push esi
call fcn.004d2d30
add esp, 0x14
test eax, eax
jne 0x4d0acc
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x1c]
jmp 0x4d0ac1
mov ebx, dword [ebp - 0x18]
lea eax, [edx + ebx]
cmp esi, eax
jb 0x4d0abb
mov ecx, esi
sub ecx, ebx
mov al, byte [ecx]
cmp al, byte [ebp - 0x14]
jne 0x4d0abb
cmp ebx, 1
je 0x4d0acc
mov al, byte [ecx + 1]
cmp al, byte [ebp - 0x13]
je 0x4d0acc
mov ebx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
inc esi
cmp esi, eax
jb 0x4d0a75
mov edi, dword [ebp - 0xac]
cmp byte [esi - 1], 0xd
jne 0x4d0735
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4d0aed
cmp eax, 2
jne 0x4d0735
cmp esi, edi
jae 0x4d0735
cmp byte [esi], 0xa
mov ecx, dword [ebp - 0x54]
jne 0x4d0738
inc esi
jmp 0x4d0738
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4d0735
cmp esi, edi
jae 0x4d091c
nop dword [eax]
movzx edx, byte [esi]
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + ebx], al
jne 0x4d091c
inc esi
cmp esi, edi
jb 0x4d0b20
jmp 0x4d091c
mov eax, dword [ebp - 0x54]
sub eax, edi
push eax
push ecx
push edi
call fcn.004dd8d5
add esp, 0xc
test eax, eax
je case.0x4d0c21.997
cmp eax, dword [ebp - 0x54]
jae case.0x4d0c21.997
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x110], eax
jmp 0x4d0b76
mov edx, ebx
cmp esi, dword [ebp - 0xf8]
ja case.0x4d0c21.997
or dword [ebp - 0x11c], 1
mov eax, esi
sub eax, dword [ebp - 0xc8]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0xe8]
or eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xc4]
movzx eax, word [edx + 0x68]
push dword [ebp - 0xfc]
mov dword [ebp - 0x48], esi
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x44], esi
push esi
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x24], 0
call fcn.004c0160
add esp, 0x18
mov ebx, eax
cmp dword [ebp - 0x8c], 0
je 0x4d0c08
cmp dword [ebp - 0xd0], 0
jne 0x4d0c08
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xf0], esi
test ebx, ebx
jg case.default.0x4d0c21
je case.0x4d0c21.996
lea eax, [ebx + 0x3e5]
cmp eax, 4
ja case.default.0x4d0c21
jmp dword [eax*4 + 0x4d0f40]
mov eax, dword [ebp - 0x24]
mov edi, esi
mov dword [ebp - 0x20], eax
jmp 0x4d0c64
mov edi, dword [ebp - 0x34]
cmp edi, esi
ja 0x4d0c64
mov ecx, dword [ebp - 0xb4]
lea edi, [esi + 1]
mov dword [ebp - 0x20], 0
test ecx, ecx
je 0x4d0c6a
mov ecx, dword [ebp - 0xac]
cmp edi, ecx
jae 0x4d0c64
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x4d0c64
inc edi
cmp edi, ecx
jb 0x4d0c57
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [ebp - 0x100], ebx
je 0x4d0ca1
mov eax, dword [ebp - 0x54]
test edx, edx
je 0x4d0d0f
cmp esi, eax
jae 0x4d0ca1
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push esi
call fcn.004d2bc0
add esp, 0x14
test eax, eax
jne case.default.0x4d0c21
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov esi, edi
cmp dword [ebp - 0x104], ebx
jne case.default.0x4d0c21
mov eax, dword [ebp - 0xac]
cmp edi, eax
ja case.default.0x4d0c21
cmp edi, dword [ebp - 0x118]
jbe 0x4d0cf8
cmp byte [edi - 1], 0xd
jne 0x4d0cf8
cmp edi, eax
jae 0x4d0cf8
cmp byte [edi], 0xa
jne 0x4d0cf8
mov eax, dword [ebp - 0xbc]
test dword [eax + 0x48], 0x800
jne 0x4d0cf8
cmp edx, 1
je 0x4d0cf5
cmp edx, 2
je 0x4d0cf5
cmp ecx, 2
jne 0x4d0cf8
lea esi, [edi + 1]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0xac]
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x40], ebx
jmp 0x4d0623
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp esi, eax
ja 0x4d0ca4
mov al, byte [esi]
cmp al, byte [ebp - 0x14]
jne 0x4d0ca4
cmp ecx, 1
je case.default.0x4d0c21
mov al, byte [esi + 1]
cmp al, byte [ebp - 0x13]
je case.default.0x4d0c21
jmp 0x4d0ca4
mov eax, dword [ebp - 0xcc]
sub eax, esi
mov dword [ebp - 0x58], esi
add eax, dword [ebp - 0xc8]
push ebx
push eax
push esi
call fcn.004d4a00
add esp, 0xc
test eax, eax
je 0x4d0d8f
mov ecx, dword [ebp - 0xe4]
jns 0x4d0968
mov edi, dword [ebx]
add edi, esi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x54], edi
cmp edi, esi
jbe 0x4d0968
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xe8], 3
jmp 0x4d05f5
mov edi, dword [ebp - 0xe4]
mov eax, edi
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xe8], 1
jmp 0x4d0600
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xbc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x14], eax
mov byte [edx + 0x30], 0
cmp ebx, 1
jne 0x4d0e8c
movzx eax, word [edx + 0x32]
mov ecx, dword [ebp - 0x70]
add eax, eax
cmp ecx, eax
jl 0x4d0de8
xor edx, edx
jmp 0x4d0df2
mov eax, ecx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
inc edx
mov edi, dword [ebp - 0xc4]
mov eax, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xc8]
sub esi, ebx
mov ecx, dword [ebp - 0x4c]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x48]
sub eax, ebx
mov dword [edi + 0x34], edx
cmp dword [ebp - 0x44], ecx
mov dword [edi + 0x2c], esi
cmova ecx, dword [ebp - 0x44]
sub ecx, ebx
mov dword [edi + 0x24], eax
test dword [ebp + 0x18], 0x4000
mov dword [edi + 0x28], ecx
je 0x4d0e76
mov esi, dword [ebp - 0xcc]
push dword [edi + 8]
add esi, dword [ebp - 0x114]
mov eax, dword [edi]
push esi
call eax
add esp, 8
mov dword [edi + 0x10], eax
test eax, eax
je 0x4d044a
push esi
push ebx
push eax
call fcn.004dd8a5
mov edx, dword [edi + 0x34]
add esp, 0xc
or byte [edi + 0x31], 1
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ebx
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x14], eax
test ebx, ebx
je 0x4d0e9f
cmp ebx, 0xfffffffe
jne 0x4d099d
mov ecx, dword [ebp - 0xf0]
test ecx, ecx
je 0x4d099a
mov eax, dword [ebp - 0xc8]
sub ecx, eax
mov ebx, dword [ebp - 0xcc]
sub edi, eax
mov dword [edx + 0x38], ecx
mov dword [edx + 0x2c], ecx
mov ecx, dword [ebp - 0xd0]
sub ecx, eax
mov dword [edx + 0x20], ebx
mov dword [edx + 0x10], eax
mov ebx, 0xfffffffe
mov dword [edx + 0x3c], edi
mov dword [edx + 0x24], ecx
mov dword [edx + 0x28], edi
jmp 0x4d099d
pop edi
pop esi
mov eax, 0xffffffd4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffcd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffde
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dc3a3
mov esp, ebp
pop ebp
ret