Function at 0x4c412a
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
jmp 0x4c414c
movsx eax, byte [esi]
push eax
call fcn.004f5eb8
test eax, eax
pop ecx
je 0x4c4154
inc esi
cmp byte [esi], 0
mov dword [ebp - 0x14], esi
jne 0x4c413d
cmp byte [esi], 0
mov ebx, esi
je 0x4c416f
movsx eax, byte [ebx]
push eax
call sub.MSVCRT.dll_isdigit
test eax, eax
pop ecx
je 0x4c416f
inc ebx
cmp byte [ebx], 0
jne 0x4c415b
xor eax, eax
cmp byte [esi], al
mov dword [ebp - 0x18], 1
setne al
mov dword [ebp - 0xc], eax
xor edi, dword [edi]
cmp dword [edi + 0xac], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x4c4242
cmp byte [ebx], 0x5f
jne 0x4c4242
push 6
mov edi, str._bias
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c41bc
mov dword [ebp - 8], 0x2000000
add ebx, 5
jmp 0x4c4242
push 5
mov edi, str._bx2
mov esi, ebx
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c41d8
mov dword [ebp - 8], reloc.Kernel32.dll_CloseHandle
add ebx, 4
jmp 0x4c4242
push 4
pop eax
mov edi, 0x506be4
mov esi, ebx
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c41f3
mov dword [ebp - 8], 0x7000000
jmp 0x4c423f
mov edi, 0x506be0
mov esi, ebx
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4c4238
mov edi, 0x506bdc
mov esi, ebx
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4c4238
mov edi, 0x506bd8
mov esi, ebx
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4c422f
mov ecx, eax
mov edi, 0x506bd4
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c4242
mov dword [ebp - 8], 0xa000000
jmp 0x4c423f
mov dword [ebp - 8], 0x9000000
add ebx, 3
cmp dword [ebp - 0xc], 0
mov esi, dword [ebp - 0x14]
je 0x4c4260
push esi
call sub.MSVCRT.dll_atoi
test eax, 0xffffe000
pop ecx
mov dword [ebp - 4], eax
je 0x4c4260
and dword [ebp - 0x18], 0
cmp byte [ebx], 0
jne 0x4c4469
xor eax, eax
cmp dword [ebp - 0x18], eax
je 0x4c4469
cmp dword [ebp + 0x10], eax
jne 0x4c4433
mov cl, byte [esi]
and byte [esi], al
mov esi, dword [ebp + 8]
mov byte [edi - 0xfb274ed], bl
cmp dword [ecx + 0xac], eax
je 0x4c431e
push 2
pop eax
mov edi, 0x506bd0
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c42b6
cmp dword [ebp - 0xc], edx
je 0x4c42b6
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jmp 0x4c4395
mov esi, dword [ebp + 8]
mov edi, 0x506bcc
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c42d6
cmp dword [ebp - 0xc], edx
je 0x4c42d6
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jmp 0x4c44c4
mov esi, dword [ebp + 8]
mov edi, 0x506bc8
mov ecx, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c42f6
cmp dword [ebp - 0xc], edx
je 0x4c42f6
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jmp 0x4c4462
mov esi, dword [ebp + 8]
mov ecx, eax
mov edi, str.tcrv
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c443c
cmp dword [esi - 0xc], ebp
je 0x4c443c
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jmp 0x4c43ee
mov edx, dword [ebp - 0xc]
push 5
mov edi, str.oPos
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c433d
test edx, edx
jne 0x4c433d
mov eax, 0x40000000
jmp 0x4c44c4
mov esi, dword [ebp + 8]
push 5
mov edi, str.oPts
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c435c
test edx, edx
jne 0x4c435c
mov eax, 0x40000002
jmp 0x4cc4c4
mov esi, dword [ebp + 8]
push 5
mov edi, str.oFog
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c437b
test edx, edx
jne 0x4c437b
mov eax, 0x40000001
jmp 0x4c44c4
mov esi, dword [ebp + 8]
push 2
pop eax
mov edi, 0x506bd0
mov ecx, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c439f
test edx, edx
je 0x4c439f
mov eax, dword [ebp - 4]
or eax, 0x10000000
jmp 0x4c44c4
mov esi, dword [ebp + 8]
mov edi, 0x506bcc
mov ecx, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c43bb
test edx, edx
je 0x4c43bb
mov eax, dword [ebp - 4]
jmp 0x4c44c4
mov esi, dword [ebp + 8]
mov edi, 0x506bc8
mov ecx, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c43d7
test edx, edx
je 0x4c43d7
mov eax, dword [ebp - 4]
jmp 0x4c4462
mov esi, dword [ebp + 8]
mov ecx, eax
mov edi, 0x506ba8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c43f8
test edx, edx
je 0x4c43f8
mov eax, dword [ebp - 4]
or eax, 0x30000000
jmp 0x4c44c4
mov esi, dword [ebp + 8]
push 3
mov edi, 0x506ba4
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c441a
test edx, edx
je 0x4c441a
mov eax, dword [ebp - 4]
or eax, 0x50000000
jmp 0x4c44c4
mov esi, dword [ebp + 8]
push 3
mov edi, 0x506ba0
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c443c
test edx, edx
je 0x4c443c
mov eax, dword [ebp - 4]
or eax, 0x60000000
jmp 0x4c44c4
add byte [eax], al
add byte [eax - 0x17], ah
mov byte [eax], al
add byte [eax], al
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp + 0x13]
mov byte [eax], cl
jmp 0x4c446f
or eax, 0x20000000
jmp 0x4c44c4
cmp dword [ebp + 0x10], 0
jne 0x4c4484
push dword [ebp + 8]
push str.invalid_register__s
push dword [ebp - 0x10]
call fcn.004bc093
add esp, 0xc
jmp 0x4c44b5
mov eax, dword [ebp + 0xc]
test ah, 0x20
je 0x4c449c
and eax, 0x1fff
push eax
push dword [ebp + 8]
push str.invalid_register__s_a0.x___d_
jmp 0x4c44aa
and eax, 0x1fff
push eax
push dword [ebp + 8]
push str.invalid_register__s__d_
push dword [ebp - 0x10]
call fcn.004c3793
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
cmp dword [ebx + 0x1074], eax
je 0x4cc4e8
mov edx, dword [ebp + 0xc]
and dword [ebp + 0x10], 0
mov ecx, eax
shl ecx, 2
mov dword [ebp + 8], edx
mov esi, dword [ebp + 0x10]
mov edx, dword [ebx + 0x107c]
and esi, dword [ebx + 0x1078]
and edx, eax
lea esi, [esi + edx*4]
cmp ecx, esi
je 0x4cc4d1
mov edi, dword [ebp + 8]
shl esi, 4
add esi, dword [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x69]
inc dword [ebp + 0x10]
add dword [ebp + 8], 0x10
inc ecx
cmp dword [ebp + 0x10], 4
jge 0x4cc4ec
add al, 0x72
retf 0x558b
jb 0x4cc4a9
mov edx, dword [ebp + 8]
inc eax
loope 0x4cc4dd
add al, 0x72
or eax, 0x8b0c75ff
push dword [ebp + 0xc]
mov esi, dword [ebp - 0x14]
jne 0x4cc4da
push esi
call dword [ebx + 0x1088]
add esi, dword [ebx + 0x1080]
add dword [ebp + 0xc], 0x100
add dword [ebp - 0x18], 4
inc dword [ebp - 0x18]
pop ecx
pop ecx
cmp eax, dword [ebx + 0x2b94]
mov dword [ebp - 0x14], esi
jb 0x4cc490
mov ecx, dword [ebx + 0x10ac]
imul ecx, dword [ebx + 0x10a8]
mov edx, dword [ebx + 0x10c0]
lea eax, [edi + 8]
lea ecx, [edx + ecx*8]
cmp eax, ecx
jae 0x4cc54d
xor ecx, ecx
cmp dword [eax], ecx
jne 0x4cc54d
cmp dword [edi + 0xc], ecx
jne 0x4cc54d
mov eax, dword [edi + 4]
mov dword [edi + 0xc], eax
mov dword [edi + 4], ecx
jmp 0x4cc55c
push dword [edi + 4]
call fcn.00454990
dec dword [ebx + 0x10bc]
pop ecx
and dword [edi + 4], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc