Function at 0x4c81a0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x260
mov eax, dword [0x7d9a88]
xor eax, esp
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x264]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x278]
push edi
mov edi, dword [esp + 0x280]
mov ebp, ecx
mov ecx, dword [esp + 0x278]
push 0x378
xor ebx, ebx
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov byte [edi], bl
call fcn.0050cd20
mov eax, dword [esp + 0x28]
add esp, 8
lea edx, [esp + 0x6c]
push edx
push ebx
mov dword [esi + 0xec], 0xff
mov ecx, dword [ebp]
push eax
call fcn.004dc0c0
test eax, eax
je 0x4c8b74
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c7d20
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 1
mov edi, ebx
jmp 0x4c8240
mov eax, dword [esp + 0x24]
cmp dword [eax + edi*4], 0xffffffff
je 0x4c8b74
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [ebp]
push edx
push eax
call fcn.004dc0c0
test eax, eax
je 0x4c8b74
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + edi*4]
cmp eax, 0x3f
ja case.0x4c8284.2
movzx edx, byte [eax + 0x4c8c18]
jmp dword [edx*4 + 0x4c8b94]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c7d20
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [ebp + 4]
call fcn.004ced00
or dword [esi], 0x40
mov dword [esi + 0xf0], eax
jmp 0x4c8b62
lea eax, [esp + 0x6c]
mov edx, esi
mov ecx, eax
sub edx, ecx
add edx, 0xc
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c82d0
or dword [esi], 1
jmp 0x4c8b62
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov ecx, dword [esp + 0x10]
or dword [esi], 2
lea edx, [esp + 0x10]
push edx
push 1
lea eax, [esp + 0x74]
mov dword [esi + 0xb0], ecx
push eax
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov ecx, dword [esp + 0x10]
or dword [esi], 4
lea edx, [esp + 0x10]
push edx
push 2
lea eax, [esp + 0x74]
mov dword [esi + 0xb4], ecx
push eax
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov ecx, dword [esp + 0x10]
or dword [esi], 8
mov dword [esi + 0xb8], ecx
jmp 0x4c8b62
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7d20
lea eax, [esp + 0x4c]
mov edx, esi
mov ecx, eax
sub edx, ecx
add edx, 0xc8
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4c8384
mov edx, dword [esp + 0x38]
or dword [esi], 0x10
mov dword [esi + 0xe8], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x20
mov dword [esi + 0xec], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x80
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
mov dword [esi + 0xbc], edx
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
mov dword [esi + 0xc0], edx
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
mov dword [esi + 0xc4], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x100
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
mov dword [esi + 0x114], edx
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
mov dword [esi + 0x118], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x200
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
mov dword [esi + 0x11c], edx
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
mov dword [esi + 0x120], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x400
mov dword [esi + 0x2c], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x800
cmp dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x124], edx
jne 0x4c8b62
mov dword [esi + 0x368], 1
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x1000000
mov dword [esi + 0x128], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x1000
mov dword [esi + 0x12c], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x2000
mov dword [esi + 0x130], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x8000
mov dword [esi + 0x154], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x10000
mov dword [esi + 0x158], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x20000
mov dword [esi + 0x15c], edx
jmp 0x4c8b62
lea eax, [esp + 0x6c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x134]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8687
or dword [esi], 0x4000
jmp 0x4c8b62
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c7d20
mov ecx, str.0000NDFP_
lea eax, [esp + 0x4c]
jmp 0x4c86c0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c86e0
cmp dl, bl
je 0x4c86dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c86e0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c86c0
xor eax, eax
jmp 0x4c86e5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c8700
or dword [esi], 0x40000
mov byte [esi + 0x290], bl
mov dword [esi + 0x2b0], ebx
jmp 0x4c8b62
lea eax, [esp + 0x4c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x290]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8710
mov eax, dword [esp + 0x28]
or dword [esi], 0x40000
mov dword [esi + 0x2b0], eax
jmp 0x4c8b62
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c7d20
mov ecx, 0x663ed4
lea eax, [esp + 0x4c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c8770
cmp dl, bl
je 0x4c876c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c8770
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c8750
xor eax, eax
jmp 0x4c8775
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c8790
or dword [esi], 0x80000
mov byte [esi + 0x2b4], bl
mov dword [esi + 0x2d4], ebx
jmp 0x4c8b62
lea eax, [esp + 0x4c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x2b4]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c87a0
mov eax, dword [esp + 0x40]
or dword [esi], 0x80000
mov dword [esi + 0x2d4], eax
jmp 0x4c8b62
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c7d20
mov ecx, 0x663ed8
lea eax, [esp + 0x4c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c8800
cmp dl, bl
je 0x4c87fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c8800
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c87e0
xor eax, eax
jmp 0x4c8805
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c8820
or dword [esi], 0x100000
mov byte [esi + 0x2d8], bl
mov dword [esi + 0x2f8], ebx
jmp 0x4c8b62
lea eax, [esp + 0x4c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x2d8]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8830
mov eax, dword [esp + 0x3c]
or dword [esi], 0x100000
mov dword [esi + 0x2f8], eax
jmp 0x4c8b62
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c7d20
mov ecx, 0x663edc
lea eax, [esp + 0x4c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c8890
cmp dl, bl
je 0x4c888c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c8890
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c8870
xor eax, eax
jmp 0x4c8895
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c88b0
or dword [esi], 0x200000
mov byte [esi + 0x2fc], bl
mov dword [esi + 0x31c], ebx
jmp 0x4c8b62
lea eax, [esp + 0x4c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x2fc]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c88c0
mov eax, dword [esp + 0x2c]
or dword [esi], 0x200000
mov dword [esi + 0x31c], eax
jmp 0x4c8b62
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c7d20
lea eax, [esp + 0x4c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x160]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8905
or dword [esi], 0x400000
jmp 0x4c8b62
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c7d20
lea eax, [esp + 0x4c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x1e0]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8940
or dword [esi], 0x800000
jmp 0x4c8b62
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x30]
or dword [esi], 0x2000000
mov dword [esi + 0x260], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x4000000
lea eax, [esp + 0x10]
push eax
push 1
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
mov dword [esi + 0x264], edx
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
mov dword [esi + 0x268], edx
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
mov dword [esi + 0x26c], edx
jmp 0x4c8b62
lea eax, [esp + 0x6c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x320]
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8a10
or dword [esi], 0x8000000
jmp 0x4c8b62
lea eax, [esp + 0x6c]
mov edx, eax
mov ecx, esi
sub ecx, edx
lea edx, [ecx + 0x270]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
cmp cl, bl
jne 0x4c8a35
or dword [esi], 0x10000000
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x20000000
mov dword [esi + 0x360], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x40000000
mov dword [esi + 0x364], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi], 0x80000000
mov dword [esi + 0x36c], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi + 4], 1
mov dword [esi + 0x370], edx
jmp 0x4c8b62
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b62
mov edx, dword [esp + 0x10]
or dword [esi + 4], 2
mov dword [esi + 0x374], edx
jmp 0x4c8b62
cmp eax, 2
jl 0x4c8b62
cmp eax, 0x21
jg 0x4c8b62
lea edi, [eax - 2]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c7770
test eax, eax
je 0x4c8b5e
mov edx, dword [esp + 0x10]
mov eax, 1
mov ecx, edi
shl eax, cl
mov dword [esi + edi*4 + 0x30], edx
or dword [esi + 8], eax
mov edi, dword [esp + 0x18]
inc dword [esp + 0x1c]
inc edi
cmp edi, 0x40
mov dword [esp + 0x18], edi
jl 0x4c8240
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ae766
add esp, 0x260
ret 0x10