Function at 0x4c09b0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x260
mov eax, dword [0x767500]
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.00500830
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.004d4620
test eax, eax
je 0x4c1384
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c0530
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 1
mov edi, ebx
jmp 0x4c0a50
mov eax, dword [esp + 0x24]
cmp dword [eax + edi*4], 0xffffffff
je 0x4c1384
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.004d4620
test eax, eax
je 0x4c1384
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + edi*4]
cmp eax, 0x3f
ja case.0x4c0a94.2
movzx edx, byte [eax + 0x4c1428]
jmp dword [edx*4 + 0x4c13a4]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c0530
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [ebp + 4]
call fcn.004c7c00
or dword [esi], 0x40
mov dword [esi + 0xf0], eax
jmp 0x4c1372
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 0x4c0ae0
or dword [esi], 1
jmp 0x4c1372
lea edx, [esp + 0x10]
push edx
push ebx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
mov ecx, dword [esp + 0x10]
or dword [esi], 8
mov dword [esi + 0xb8], ecx
jmp 0x4c1372
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004c0530
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 0x4c0b94
mov edx, dword [esp + 0x38]
or dword [esi], 0x10
mov dword [esi + 0xe8], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x20
mov dword [esi + 0xec], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
mov dword [esi + 0xc4], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
mov dword [esi + 0x118], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
mov dword [esi + 0x120], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x400
mov dword [esi + 0x2c], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x800
cmp dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x124], edx
jne 0x4c1372
mov dword [esi + 0x368], 1
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x1000000
mov dword [esi + 0x128], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x1000
mov dword [esi + 0x12c], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x2000
mov dword [esi + 0x130], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x8000
mov dword [esi + 0x154], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x10000
mov dword [esi + 0x158], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x20000
mov dword [esi + 0x15c], edx
jmp 0x4c1372
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 0x4c0e97
or dword [esi], 0x4000
jmp 0x4c1372
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c0530
mov ecx, str.0000NDFP_
lea eax, [esp + 0x4c]
jmp 0x4c0ed0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c0ef0
cmp dl, bl
je 0x4c0eec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c0ef0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c0ed0
xor eax, eax
jmp 0x4c0ef5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c0f10
or dword [esi], 0x40000
mov byte [esi + 0x290], bl
mov dword [esi + 0x2b0], ebx
jmp 0x4c1372
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 0x4c0f20
mov eax, dword [esp + 0x28]
or dword [esi], 0x40000
mov dword [esi + 0x2b0], eax
jmp 0x4c1372
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c0530
mov ecx, 0x6109dc
lea eax, [esp + 0x4c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c0f80
cmp dl, bl
je 0x4c0f7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c0f80
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c0f60
xor eax, eax
jmp 0x4c0f85
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c0fa0
or dword [esi], 0x80000
mov byte [esi + 0x2b4], bl
mov dword [esi + 0x2d4], ebx
jmp 0x4c1372
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 0x4c0fb0
mov eax, dword [esp + 0x40]
or dword [esi], 0x80000
mov dword [esi + 0x2d4], eax
jmp 0x4c1372
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c0530
mov ecx, 0x6109e0
lea eax, [esp + 0x4c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c1010
cmp dl, bl
je 0x4c100c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c1010
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c0ff0
xor eax, eax
jmp 0x4c1015
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c1030
or dword [esi], 0x100000
mov byte [esi + 0x2d8], bl
mov dword [esi + 0x2f8], ebx
jmp 0x4c1372
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 0x4c1040
mov eax, dword [esp + 0x3c]
or dword [esi], 0x100000
mov dword [esi + 0x2f8], eax
jmp 0x4c1372
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c0530
mov ecx, 0x6109e4
lea eax, [esp + 0x4c]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c10a0
cmp dl, bl
je 0x4c109c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c10a0
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x4c1080
xor eax, eax
jmp 0x4c10a5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4c10c0
or dword [esi], 0x200000
mov byte [esi + 0x2fc], bl
mov dword [esi + 0x31c], ebx
jmp 0x4c1372
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 0x4c10d0
mov eax, dword [esp + 0x2c]
or dword [esi], 0x200000
mov dword [esi + 0x31c], eax
jmp 0x4c1372
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call fcn.004c0530
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 0x4c1115
or dword [esi], 0x400000
jmp 0x4c1372
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov ecx, ebp
call fcn.004c0530
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 0x4c1150
or dword [esi], 0x800000
jmp 0x4c1372
lea eax, [esp + 0x30]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x30]
or dword [esi], 0x2000000
mov dword [esi + 0x260], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
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.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
mov dword [esi + 0x26c], edx
jmp 0x4c1372
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 0x4c1220
or dword [esi], 0x8000000
jmp 0x4c1372
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 0x4c1245
or dword [esi], 0x10000000
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x20000000
mov dword [esi + 0x360], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x40000000
mov dword [esi + 0x364], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi], 0x80000000
mov dword [esi + 0x36c], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi + 4], 1
mov dword [esi + 0x370], edx
jmp 0x4c1372
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c1372
mov edx, dword [esp + 0x10]
or dword [esi + 4], 2
mov dword [esi + 0x374], edx
jmp 0x4c1372
cmp eax, 2
jl 0x4c1372
cmp eax, 0x21
jg 0x4c1372
lea edi, [eax - 2]
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebp
call fcn.004bffb0
test eax, eax
je 0x4c136e
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 0x4c0a50
mov ecx, dword [esp + 0x26c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0055d4e2
add esp, 0x260
ret 0x10