Function at 0x4d1120
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x6c4cb8]
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 0x4d11be
test esi, esi
mov eax, 0x53da6e
cmovne eax, ebx
mov ebx, eax
mov dword [ebp - 0xc8], eax
test dword [ebp + 0x18], 0x1ffb9fc0
jne 0x4d2260
test ecx, ecx
je 0x4d224a
test ebx, ebx
je 0x4d224a
test edx, edx
je 0x4d224a
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 0x4d1226
push ebx
call fcn.004d2320
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 0x4d1264
pop edi
pop esi
mov eax, 0xffffffdf
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xbc]
cmp dword [ebx + 0x38], 0x50435245
je 0x4d1289
pop edi
pop esi
mov eax, 0xffffffe1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x48]
mov eax, ecx
and al, 7
cmp al, 1
je 0x4d12aa
pop edi
pop esi
mov eax, 0xffffffe0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
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 0x4d12d9
mov eax, 2
jmp 0x4d12e1
mov eax, ecx
shr eax, 4
and eax, 1
movzx eax, ax
mov word [ebp - 0x6c], ax
test ax, ax
je 0x4d12fc
mov eax, ebx
or eax, ecx
test eax, 0x20000000
jne 0x4d2260
test edi, edi
je 0x4d1324
cmp dword [edi + 0x1c], 0xffffffff
je 0x4d1324
test ebx, 0x800000
jne 0x4d1324
pop edi
pop esi
mov eax, 0xffffffc8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
mov esp, ebp
pop ebp
ret
test byte [edx + 0x31], 1
je 0x4d1345
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 0x4d1523
test ecx, 0x40000000
je 0x4d1385
test ebx, 0x4000000
je 0x4d1523
mov ecx, dword [ebp - 0xac]
mov eax, ebx
xor edx, edx
and eax, 0x4000000
cmp esi, ecx
jae 0x4d13b2
test eax, eax
je 0x4d14d0
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d13b2
inc esi
mov edx, 1
cmp esi, ecx
jb 0x4d13a0
mov ecx, esi
mov dword [ebp - 0x58], ecx
test edx, edx
jne 0x4d13f8
mov eax, dword [ebp - 0xbc]
movzx edx, word [eax + 0x64]
test edx, edx
je 0x4d13f8
mov edi, dword [ebp - 0xc8]
nop
cmp ecx, edi
jbe 0x4d13f5
dec ecx
mov dword [ebp - 0x58], ecx
cmp ecx, edi
jbe 0x4d13f0
nop dword [eax]
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x4d13f0
dec ecx
mov dword [ebp - 0x58], ecx
cmp ecx, edi
ja 0x4d13e0
sub edx, 1
jne 0x4d13d0
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.004d5d50
mov ecx, dword [ebp - 0xc4]
add esp, 0xc
mov dword [ecx + 0x34], eax
test eax, eax
je 0x4d14c2
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 0x4d1509
mov ecx, dword [ebp - 0xc4]
cmp dword [ecx + 0x34], 0
jg 0x4d1509
add edx, eax
mov dword [ebp - 0xac], edx
cmp edx, esi
jae 0x4d14fd
lea ecx, [edx + 1]
mov dword [ebp - 0x58], ecx
cmp ecx, esi
jae 0x4d1493
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x4d1493
inc ecx
mov dword [ebp - 0x58], ecx
cmp ecx, esi
jb 0x4d1483
mov eax, dword [ebp - 0xcc]
push dword [ebp - 0xd8]
sub eax, ecx
add eax, dword [ebp - 0xc8]
push eax
push ecx
call fcn.004d5d50
mov ecx, dword [ebp - 0xc4]
add esp, 0xc
mov dword [ecx + 0x34], eax
test eax, eax
jne 0x4d1430
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xac], edx
jmp 0x4d1529
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d13b2
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.004f181f
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xe8], 2
jmp 0x4d1529
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.004f181f
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xac]
test edi, edi
jne 0x4d153c
mov eax, dword [ebp - 0xbc]
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
jmp 0x4d1543
movq xmm0, qword [edi]
mov eax, dword [edi + 8]
test edi, edi
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xbc]
mov ebx, 0x518cd4
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 0x4d1588
mov dword [ebp - 0x100], 1
test ecx, 0x100
jne 0x4d1592
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 0x4d1639
test edx, 0x2000
jne 0x4d1639
xor eax, eax
jmp 0x4d163e
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.0x4d16a5
jmp dword [eax*4 + 0x4d2278]
mov dword [ebp - 0x18], 1
mov byte [ebp - 0x14], 0xd
jmp 0x4d16f2
mov dword [ebp - 0x18], 1
mov byte [ebp - 0x14], 0xa
jmp 0x4d16f2
mov dword [ebp - 0x18], 1
mov byte [ebp - 0x14], 0
jmp 0x4d16f2
mov dword [ebp - 0x18], 2
mov word [ebp - 0x14], 0xa0d
jmp 0x4d16f2
mov dword [ebp - 0x1c], 1
jmp 0x4d16f2
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 0x4d176f
mov edi, edx
shl edi, 0xa
cmp edi, ecx
jae 0x4d176f
pop edi
pop esi
mov eax, 0xffffffc1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc4]
cmp dword [ebx + 0x1c], edi
jae 0x4d17b9
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 0x4d17b0
mov dword [ebx + 0x1c], eax
pop edi
pop esi
mov eax, 0xffffffd0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
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.004f2d21
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 0x4d1905
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 0x4d192e
movzx edx, ah
mov bl, byte [edx + edi]
mov byte [ebp - 0xad], bl
mov ebx, dword [ebp - 0xd0]
cmp al, 0x7f
jbe 0x4d1878
test ebx, 0x20000
je 0x4d1878
cmp dword [ebp - 0xb4], 0
jne 0x4d1878
mov eax, edx
and edx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x51e330]
shl eax, 7
add eax, edx
movzx eax, word [eax*2 + 0x522730]
lea eax, [eax + eax*2]
mov ah, byte [eax*4 + 0x51a07c]
add ah, byte [ebp - 0xbd]
mov byte [ebp - 0xad], ah
mov edx, dword [ebp - 0xbc]
test cl, cl
jns 0x4d1939
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 0x4d1939
movzx ecx, al
cmp dl, 0x7f
mov edx, dword [ebp - 0xb4]
mov al, byte [edi + ecx]
mov byte [ebp - 0xb5], al
jbe 0x4d193f
test ebx, 0x20000
je 0x4d193f
test edx, edx
jne 0x4d193f
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, word [eax*2 + 0x51e330]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x522730]
lea eax, [eax + eax*2]
mov al, byte [eax*4 + 0x51a07c]
add al, byte [ebp - 0xbe]
mov byte [ebp - 0xb5], al
jmp 0x4d193f
test dword [ebp - 0xf4], 0x200
jne 0x4d192e
mov ebx, dword [ebp - 0xd0]
test cl, 0x40
je 0x4d187e
lea eax, [edx + 0x14]
mov dword [ebp - 0xdc], eax
jmp 0x4d187e
mov ebx, dword [ebp - 0xd0]
jmp 0x4d187e
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 0x4d1ec4
cmp dword [ebp - 0x100], 0
je 0x4d1a17
mov ebx, dword [ebp - 0xac]
mov edi, esi
cmp esi, ebx
jae 0x4d1a11
test edx, edx
mov edx, dword [ebp - 0x1c]
je 0x4d1b34
nop word [eax + eax]
test edx, edx
je 0x4d19dc
mov eax, dword [ebp - 0x54]
cmp edi, eax
jae 0x4d19f6
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push edi
call fcn.004d3f10
add esp, 0x14
test eax, eax
jne 0x4d1a11
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x4d19f6
sub eax, ecx
cmp edi, eax
ja 0x4d19f6
mov al, byte [edi]
cmp al, byte [ebp - 0x14]
jne 0x4d19f6
cmp ecx, 1
je 0x4d1a11
mov al, byte [edi + 1]
cmp al, byte [ebp - 0x13]
je 0x4d1a11
inc edi
cmp edi, ebx
jae 0x4d1a11
nop dword [eax + eax]
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x4d1b2c
inc edi
cmp edi, ebx
jb 0x4d1a00
mov dword [ebp - 0xac], edi
cmp dword [ebp - 0x104], 0
je 0x4d1b94
mov ecx, dword [ebp - 0xe0]
mov ebx, dword [ebp - 0xdc]
test ecx, ecx
jne 0x4d1a38
test ebx, ebx
je 0x4d1a85
cmp esi, edi
sbb eax, eax
neg eax
cmp esi, edi
jae 0x4d1a7d
mov al, byte [esi]
test ecx, ecx
je 0x4d1a58
cmp al, byte [ebp - 0xbd]
je 0x4d1a85
cmp al, byte [ebp - 0xad]
je 0x4d1a85
test ebx, ebx
je case.0x4d1f71.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.0x4d1f71.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 0x4d1ec6
movzx eax, word [edx + 0x66]
sub ecx, esi
cmp ecx, eax
jl case.0x4d1f71.997
mov edi, dword [ebp - 0xe0]
add edi, esi
cmp dword [ebp - 0x10c], 0
je 0x4d1ec6
cmp edi, dword [ebp - 0x110]
jbe 0x4d1ec6
cmp ecx, 0x1388
jb 0x4d1af1
cmp dword [ebp - 0x104], 0
jne 0x4d1ec6
cmp ecx, 0x4c4b40
jae 0x4d1ec6
mov al, byte [ebp - 0xbe]
movzx ecx, al
cmp al, byte [ebp - 0xb5]
je 0x4d1e95
mov ebx, dword [ebp - 0x54]
sub ebx, edi
push ebx
push ecx
push edi
call fcn.004f2d45
add esp, 0xc
test eax, eax
jne 0x4d1ead
movzx eax, byte [ebp - 0xb5]
push ebx
push eax
jmp 0x4d1e9c
mov eax, dword [ebp - 0x54]
jmp 0x4d19b0
test edx, edx
je 0x4d1b64
mov eax, dword [ebp - 0x54]
cmp edi, eax
jae 0x4d1b86
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push edi
call fcn.004d3f10
add esp, 0x14
test eax, eax
jne 0x4d1a11
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
jmp 0x4d1b86
sub eax, ecx
cmp edi, eax
ja 0x4d1b86
mov al, byte [edi]
cmp al, byte [ebp - 0x14]
jne 0x4d1b86
cmp ecx, 1
je 0x4d1a11
mov al, byte [edi + 1]
cmp al, byte [ebp - 0x13]
je 0x4d1a11
inc edi
cmp edi, ebx
jae 0x4d1a11
mov eax, dword [ebp - 0x54]
jmp 0x4d1b34
cmp dword [ebp - 0xe0], 0
je 0x4d1d03
mov al, byte [ebp - 0xbd]
mov ebx, edi
mov dl, byte [ebp - 0xad]
sub ebx, esi
cmp al, dl
je 0x4d1c57
mov ecx, dword [ebp - 0x108]
test ecx, ecx
je 0x4d1bdb
cmp esi, ecx
ja 0x4d1bdb
mov eax, dword [ebp - 0xac]
mov edi, ecx
cmp ecx, eax
mov ecx, 0
cmove edi, ecx
jmp 0x4d1c04
push ebx
movzx eax, al
push eax
push esi
call fcn.004f2d45
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 0x4d1c1d
cmp esi, ecx
ja 0x4d1c1d
xor edx, edx
mov esi, ecx
cmp ecx, eax
cmove esi, edx
jmp 0x4d1c40
push ebx
movzx eax, dl
push eax
push esi
call fcn.004f2d45
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 0x4d1c4b
test esi, esi
cmove esi, eax
jmp 0x4d1c6c
test esi, esi
je 0x4d1c53
cmp edi, esi
jae 0x4d1c6c
mov esi, edi
jmp 0x4d1c6c
push ebx
movzx eax, al
push eax
push esi
call fcn.004f2d45
mov esi, eax
add esp, 0xc
test esi, esi
cmove esi, edi
cmp word [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x54]
jne 0x4d1a88
cmp esi, ecx
jb 0x4d1a88
xor ebx, ebx
cmp dword [ebp - 0xb4], 0
mov edi, dword [ebp - 0xac]
je 0x4d2105
mov ecx, dword [ebp - 0xe4]
cmp edi, ecx
je 0x4d2105
test ebx, ebx
je 0x4d1cb2
cmp ebx, 0xfffffffe
jne 0x4d2105
mov ebx, dword [ebp - 0xd8]
lea esi, [edi + 1]
cmp esi, ecx
jae 0x4d1cd1
nop
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d2089
inc esi
cmp esi, ecx
jb 0x4d1cc0
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.004f181f
mov esp, ebp
pop ebp
ret
test dword [ebp - 0xf4], 0x200
je 0x4d1e57
mov eax, dword [ebp - 0xd4]
mov edx, dword [ebp - 0x5c]
add eax, edx
cmp esi, eax
jbe 0x4d1a85
cmp esi, edi
jae 0x4d1e22
mov ebx, dword [ebp - 0xb4]
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x4d1dbf
mov ecx, dword [ebp - 0xac]
test edi, edi
je 0x4d1d73
cmp esi, edx
jbe 0x4d1da9
push ebx
lea eax, [ebp - 0x18]
push eax
push edx
push edi
push esi
call fcn.004d4080
add esp, 0x14
test eax, eax
jne 0x4d1e1c
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xac]
jmp 0x4d1da9
mov ebx, dword [ebp - 0x18]
lea eax, [edx + ebx]
cmp esi, eax
jb 0x4d1da3
mov ecx, esi
sub ecx, ebx
mov al, byte [ecx]
cmp al, byte [ebp - 0x14]
jne 0x4d1d9d
cmp ebx, 1
je 0x4d1e1c
mov al, byte [ecx + 1]
cmp al, byte [ebp - 0x13]
je 0x4d1e1c
mov ecx, dword [ebp - 0xac]
mov ebx, dword [ebp - 0xb4]
inc esi
cmp esi, ecx
jae 0x4d1e1c
nop
mov al, byte [esi]
and al, 0xc0
cmp al, 0x80
jne 0x4d1d45
inc esi
cmp esi, ecx
jb 0x4d1db0
jmp 0x4d1e1c
mov eax, dword [ebp - 0xac]
test edi, edi
je 0x4d1de9
cmp esi, edx
jbe 0x4d1e17
push ebx
lea eax, [ebp - 0x18]
push eax
push edx
push edi
push esi
call fcn.004d4080
add esp, 0x14
test eax, eax
jne 0x4d1e1c
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x1c]
jmp 0x4d1e11
mov ebx, dword [ebp - 0x18]
lea eax, [edx + ebx]
cmp esi, eax
jb 0x4d1e0b
mov ecx, esi
sub ecx, ebx
mov al, byte [ecx]
cmp al, byte [ebp - 0x14]
jne 0x4d1e0b
cmp ebx, 1
je 0x4d1e1c
mov al, byte [ecx + 1]
cmp al, byte [ebp - 0x13]
je 0x4d1e1c
mov ebx, dword [ebp - 0xb4]
mov eax, dword [ebp - 0xac]
inc esi
cmp esi, eax
jb 0x4d1dc5
mov edi, dword [ebp - 0xac]
cmp byte [esi - 1], 0xd
jne 0x4d1a85
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x4d1e3d
cmp eax, 2
jne 0x4d1a85
cmp esi, edi
jae 0x4d1a85
cmp byte [esi], 0xa
mov ecx, dword [ebp - 0x54]
jne 0x4d1a88
inc esi
jmp 0x4d1a88
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4d1a85
cmp esi, edi
jae 0x4d1c6c
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 0x4d1c6c
inc esi
cmp esi, edi
jb 0x4d1e70
jmp 0x4d1c6c
mov eax, dword [ebp - 0x54]
sub eax, edi
push eax
push ecx
push edi
call fcn.004f2d45
add esp, 0xc
test eax, eax
je case.0x4d1f71.997
cmp eax, dword [ebp - 0x54]
jae case.0x4d1f71.997
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x110], eax
jmp 0x4d1ec6
mov edx, ebx
cmp esi, dword [ebp - 0xf8]
ja case.0x4d1f71.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.004c14b0
add esp, 0x18
mov ebx, eax
cmp dword [ebp - 0x8c], 0
je 0x4d1f58
cmp dword [ebp - 0xd0], 0
jne 0x4d1f58
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xf0], esi
test ebx, ebx
jg case.default.0x4d1f71
je case.0x4d1f71.996
lea eax, [ebx + 0x3e5]
cmp eax, 4
ja case.default.0x4d1f71
jmp dword [eax*4 + 0x4d2290]
mov eax, dword [ebp - 0x24]
mov edi, esi
mov dword [ebp - 0x20], eax
jmp 0x4d1fb4
mov edi, dword [ebp - 0x34]
cmp edi, esi
ja 0x4d1fb4
mov ecx, dword [ebp - 0xb4]
lea edi, [esi + 1]
mov dword [ebp - 0x20], 0
test ecx, ecx
je 0x4d1fba
mov ecx, dword [ebp - 0xac]
cmp edi, ecx
jae 0x4d1fb4
mov al, byte [edi]
and al, 0xc0
cmp al, 0x80
jne 0x4d1fb4
inc edi
cmp edi, ecx
jb 0x4d1fa7
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
cmp dword [ebp - 0x100], ebx
je 0x4d1ff1
mov eax, dword [ebp - 0x54]
test edx, edx
je 0x4d205f
cmp esi, eax
jae 0x4d1ff1
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push edx
push esi
call fcn.004d3f10
add esp, 0x14
test eax, eax
jne case.default.0x4d1f71
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov esi, edi
cmp dword [ebp - 0x104], ebx
jne case.default.0x4d1f71
mov eax, dword [ebp - 0xac]
cmp edi, eax
ja case.default.0x4d1f71
cmp edi, dword [ebp - 0x118]
jbe 0x4d2048
cmp byte [edi - 1], 0xd
jne 0x4d2048
cmp edi, eax
jae 0x4d2048
cmp byte [edi], 0xa
jne 0x4d2048
mov eax, dword [ebp - 0xbc]
test dword [eax + 0x48], 0x800
jne 0x4d2048
cmp edx, 1
je 0x4d2045
cmp edx, 2
je 0x4d2045
cmp ecx, 2
jne 0x4d2048
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 0x4d1973
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp esi, eax
ja 0x4d1ff4
mov al, byte [esi]
cmp al, byte [ebp - 0x14]
jne 0x4d1ff4
cmp ecx, 1
je case.default.0x4d1f71
mov al, byte [esi + 1]
cmp al, byte [ebp - 0x13]
je case.default.0x4d1f71
jmp 0x4d1ff4
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.004d5d50
add esp, 0xc
test eax, eax
je 0x4d20df
mov ecx, dword [ebp - 0xe4]
jns 0x4d1cb8
mov edi, dword [ebx]
add edi, esi
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x54], edi
cmp edi, esi
jbe 0x4d1cb8
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xe8], 3
jmp 0x4d1945
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 0x4d1950
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 0x4d21dc
movzx eax, word [edx + 0x32]
mov ecx, dword [ebp - 0x70]
add eax, eax
cmp ecx, eax
jl 0x4d2138
xor edx, edx
jmp 0x4d2142
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 0x4d21c6
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 0x4d179a
push esi
push ebx
push eax
call fcn.004f2d15
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.004f181f
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.004f181f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x14], eax
test ebx, ebx
je 0x4d21ef
cmp ebx, 0xfffffffe
jne 0x4d1ced
mov ecx, dword [ebp - 0xf0]
test ecx, ecx
je 0x4d1cea
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 0x4d1ced
pop edi
pop esi
mov eax, 0xffffffd4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f181f
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.004f181f
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.004f181f
mov esp, ebp
pop ebp
ret