Function at 0x421ab0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp edi, ebx
je 0x421ec6
mov ecx, dword [ebp + 0x20]
mov eax, ecx
xor edx, edx
sar eax, 0x10
and ecx, 0xffff
mov dword [ebp + 0x14], edx
cmp eax, ebx
je 0x421aeb
mov dword [ebp + 0x14], eax
jge 0x421ae9
mov dword [ebp + 0x14], ebx
jmp 0x421aeb
mov edx, eax
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x421b08
mov eax, dword [0x651684]
add edx, 0xa
mov dword [ebp - 4], edx
mov edx, dword [0x651674]
add ecx, 0x14
jmp 0x421b64
cmp eax, 3
jne 0x421b23
mov eax, dword [0x651688]
add edx, 0x12
mov dword [ebp - 4], edx
mov edx, dword [0x651678]
add ecx, 0x24
jmp 0x421b64
cmp eax, 4
jne 0x421b3e
mov eax, dword [0x65168c]
add edx, 0x18
mov dword [ebp - 4], edx
mov edx, dword [0x65167c]
add ecx, 0x30
jmp 0x421b64
cmp eax, 2
jne 0x421b50
mov eax, dword [0x651694]
add edx, 6
add ecx, 0xc
jmp 0x421b5b
mov eax, dword [0x651690]
add edx, 8
add ecx, 0x10
mov dword [ebp - 4], edx
mov edx, dword [0x651680]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x20], ecx
cmp eax, 0x10
jle 0x421b7e
mov dword [ebp + 0x40], 0x10
jmp 0x421b85
cmp eax, ebx
jge 0x421b85
mov dword [ebp + 0x40], ebx
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
push esi
mov esi, dword [ebp + 0x1c]
push eax
push esi
push ecx
call fcn.004218d0
add esp, 0xc
mov dword [0x6bae50], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
mov eax, 1
test esi, esi
jns 0x421bc3
and esi, 0x7fffffff
mov dword [ebp - 0x18], eax
mov dword [ebp + 0x1c], esi
test esi, 0x40000000
je 0x421bd7
and esi, 0xbfffffff
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x1c], esi
test esi, 0x20000000
je 0x421bee
and esi, 0xdfffffff
add dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x1c], esi
test esi, 0x10000000
je 0x421c02
and esi, 0xefffffff
mov dword [ebp - 0x20], eax
mov dword [ebp + 0x1c], esi
xor edx, edx
xor esi, esi
mov dword [ebp - 8], edx
cmp dword [ebp + 0x38], edx
je 0x421c65
cmp byte [edi], 0x20
jne 0x421c1b
add ebx, eax
cmp byte [ebx + edi], 0x20
je 0x421c13
cmp dword [ebp - 0x1c], edx
jne 0x421c3a
push edi
cmp dword [ebp - 0x10], edx
jne 0x421c30
call fcn.00421750
add esp, 4
jmp 0x421c49
call fcn.004217a0
add esp, 4
jmp 0x421c49
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421c40
sub eax, edx
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, dword [ebp + 0x34]
imul edx, ecx
sub eax, edx
sub eax, dword [ebp + 0x14]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
mov edx, esi
jmp 0x421c68
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x1c], esi
je 0x421c76
cmp dword [ebp - 0x10], esi
je 0x421e79
movzx eax, byte [ebx + edi]
inc ebx
test eax, eax
je 0x421e79
cmp eax, 0x81
jb 0x421c90
inc ebx
jmp 0x421e6c
cmp eax, 0x40
jne 0x421d95
movzx eax, byte [ebx + edi]
sub eax, 0x30
mov dword [ebp - 0x1c], eax
cmp eax, 0x1f
ja 0x421e6c
mov eax, dword [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x3c]
push eax
mov eax, dword [ebp + 0x18]
push eax
lea eax, [esi + edi]
sub esi, edx
push eax
imul esi, ecx
cmp dword [ebp + 0x38], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov byte [ebx + edi - 1], 0
push eax
je 0x421cf2
add esi, dword [ebp - 0x14]
add esi, dword [ebp + 0xc]
push esi
push ecx
call dword [ebp + 0x44]
add esp, 0x38
cmp dword [ebp - 0x18], 0
jne 0x421d6d
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x3c], eax
cmp eax, 9
jle 0x421d57
add eax, 0xffffffee
cmp eax, 3
ja case.default.0x421d16
jmp dword [eax*4 + 0x421ecc]
mov dword [ebp + 0x3c], reloc.MSVCRT.dll_strncpy
mov eax, dword [ebp + 0x3c]
jmp 0x421d68
mov dword [ebp + 0x3c], reloc.MSVCRT.dll_strncpy
mov eax, dword [ebp + 0x3c]
jmp 0x421d68
mov dword [ebp + 0x3c], reloc.MSVCRT.dll_strncpy
mov eax, dword [ebp + 0x3c]
jmp 0x421d68
mov dword [ebp + 0x3c], reloc.MSVCRT.dll_strncpy
mov eax, dword [ebp + 0x3c]
jmp 0x421d68
mov edx, dword [ebp - 0x24]
mov dword [ebp + 0x3c], edx
mov eax, edx
jmp 0x421d68
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x1c]
push ecx
push edx
push eax
call fcn.004218d0
add esp, 0xc
mov dword [0x6bae50], eax
mov byte [ebx + edi - 1], 0x40
inc ebx
cmp dword [ebp - 0x10], 0
jne 0x421d8c
cmp dword [ebp + 0x38], 0
je 0x421d8c
cmp byte [ebx + edi], 0x20
jne 0x421d8c
inc ebx
cmp byte [ebx + edi], 0x20
je 0x421d85
add dword [ebp - 8], 2
jmp 0x421e64
cmp eax, 0x23
jne 0x421e6c
cmp dword [ebp - 0x20], 0
jne 0x421e6c
mov eax, dword [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x3c]
push eax
mov eax, dword [ebp + 0x18]
push eax
lea eax, [esi + edi]
sub esi, edx
push eax
imul esi, ecx
cmp dword [ebp + 0x38], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov byte [ebx + edi - 1], 0
push eax
je 0x421e2f
add esi, dword [ebp - 0x14]
add esi, dword [ebp + 0xc]
push esi
push ecx
call dword [ebp + 0x44]
add esp, 0x38
mov byte [ebx + edi - 1], 0x23
cmp byte [ebx + edi], 0x20
jne 0x421e0b
inc ebx
cmp byte [ebx + edi], 0x20
je 0x421e04
lea edx, [ebx + edi]
push edx
call fcn.00421750
mov ecx, eax
imul ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x34]
sub eax, ecx
sub eax, dword [ebp + 0x14]
add esp, 4
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
jmp 0x421e3f
add esi, dword [ebp + 0xc]
push esi
push ecx
call dword [ebp + 0x44]
add esp, 0x38
mov byte [ebx + edi - 1], 0x23
cmp dword [ebp - 0x10], 0
jne 0x421e61
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 4]
mov esi, ebx
mov dword [ebp - 8], ebx
mov edx, ebx
test eax, eax
je 0x421e5b
add dword [ebp + 0x10], eax
jmp 0x421e6c
add dword [ebp + 0x10], 0x12
jmp 0x421e6c
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov esi, ebx
movzx eax, byte [ebx + edi]
inc ebx
test eax, eax
jne 0x421c83
mov eax, dword [ebp + 0x40]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x30]
push eax
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x3c]
push eax
mov eax, dword [ebp + 0x18]
push eax
lea eax, [esi + edi]
sub esi, edx
push eax
imul esi, ecx
cmp dword [ebp + 0x38], 0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push eax
je 0x421eba
add esi, dword [ebp - 0x14]
add esi, dword [ebp + 0xc]
push esi
push ecx
call dword [ebp + 0x44]
add esp, 0x38
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret