Function at 0x406460
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x466240]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x466240]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x30]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x20]
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x4064c7
mov al, byte [ebx]
cmp al, 0x2b
je 0x4064c0
cmp al, 0x2d
jne 0x4064c7
mov edi, 1
jmp 0x4064c9
xor edi, edi
mov eax, dword [esi + 0x14]
and eax, 0x3000
mov dword [esp + 0x18], edi
cmp eax, 0x3000
je 0x4064e3
mov edx, 0x45ff7c
jmp 0x406509
lea eax, [edi + 2]
mov edx, 0x45ff80
cmp eax, ecx
ja 0x406509
cmp byte [ebx + edi], 0x30
jne 0x406509
mov cl, byte [ebx + edi + 1]
cmp cl, 0x78
je 0x406503
cmp cl, 0x58
jne 0x406509
mov edi, eax
mov dword [esp + 0x18], edi
push edx
push ebx
call fcn.00414900
mov dword [esp + 0x3c], eax
mov eax, 0x2e
mov word [esp + 0x60], ax
call fcn.00414890
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x60], al
lea eax, [esp + 0x60]
push eax
push ebx
call fcn.00414900
add esp, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00403620
push eax
mov dword [esp + 0x8c], 0
call fcn.00406ff0
mov dword [esp + 0x8c], 0xffffffff
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x406590
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
test esi, esi
je 0x406590
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
call fcn.00414870
add esp, 4
mov ecx, dword [esp + 0x20]
push 0x30
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push 0
push esi
mov byte [esp + 0x18], al
call fcn.00406010
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x40]
mov dword [esp + 0x88], 1
cmp dword [esp + 0x54], 0x10
cmovae eax, dword [esp + 0x40]
mov edx, dword [ecx]
push eax
lea eax, [esi + ebx]
push eax
push ebx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
call fcn.00403620
push eax
mov byte [esp + 0x8c], 2
call fcn.004077d0
mov byte [esp + 0x8c], 1
add esp, 4
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov dword [esp + 0x20], ebx
test ecx, ecx
je 0x40662a
mov eax, dword [ecx]
call dword [eax + 8]
mov esi, eax
test esi, esi
je 0x40662a
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
push esi
call fcn.00414870
add esp, 4
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.00406ef0
mov byte [esp + 0x88], 3
mov ecx, ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
call eax
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
push dword [esp + 0x10]
mov byte [esp + 0x1a], al
cmp esi, dword [esp + 0x34]
jne 0x406667
mov eax, dword [ebp + 0x24]
push eax
push ecx
lea ebx, [ecx + eax]
jmp 0x4066d6
push dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x24]
push ecx
lea ecx, [esp + 0x48]
add ebx, esi
call fcn.004060c0
push dword [esp + 0x10]
lea eax, [esi + 1]
push dword [ebp + 0x28]
lea ecx, [esp + 0x44]
push eax
call fcn.004060c0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov byte [esp + 0x17], al
cmp dword [esp + 0x50], esi
jae 0x4066b9
push 0x695
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VCincludexstring
push str.string_subscript_out_of_range
call fcn.0040f290
add esp, 0xc
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
push dword [esp + 0x10]
cmovae eax, dword [esp + 0x44]
push dword [ebp + 0x24]
mov cl, byte [esp + 0x1f]
push esi
mov byte [eax + esi], cl
lea ecx, [esp + 0x48]
call fcn.004060c0
cmp dword [esp + 0x74], 0x10
lea edx, [esp + 0x60]
mov ecx, dword [esp + 0x54]
cmovae edx, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov al, byte [edx]
cmp al, 0x7f
je 0x4067f3
test al, al
jle 0x4067ef
movsx edi, al
mov eax, ebx
sub eax, dword [esp + 0x18]
cmp edi, eax
jae 0x4067ef
sub ebx, edi
cmp esi, ebx
jb 0x406837
or eax, 0xffffffff
sub eax, esi
cmp eax, 1
jbe 0x40682d
lea edi, [esi + 1]
mov dword [esp + 0x24], edi
cmp edi, 0xfffffffe
ja 0x40682d
cmp ecx, edi
jae 0x406810
push esi
push edi
lea ecx, [esp + 0x44]
call fcn.00402860
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
test edi, edi
je 0x4067d7
mov edx, dword [esp + 0x40]
lea edi, [esp + 0x40]
cmp ecx, 0x10
lea eax, [esp + 0x40]
cmovae edi, edx
cmovae eax, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x24]
sub esi, ebx
je 0x4067a4
add eax, ebx
push esi
push eax
mov eax, dword [esp + 0x24]
inc eax
add eax, ebx
push eax
call fcn.00410860
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov edx, dword [esp + 0x40]
cmp ecx, 0x10
lea eax, [esp + 0x40]
mov cl, byte [esp + 0x16]
cmovae eax, edx
mov edx, dword [esp + 0x10]
mov byte [eax + ebx], cl
lea eax, [esp + 0x40]
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x50], edi
cmovae eax, dword [esp + 0x40]
mov byte [eax + edi], 0
mov esi, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
cmp byte [edx + 1], 0
lea eax, [edx + 1]
cmovg edx, eax
mov dword [esp + 0x10], edx
mov al, byte [edx]
cmp al, 0x7f
jne 0x406703
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x24], 0
jl 0x406841
jg 0x406805
cmp dword [eax + 0x20], 0
jbe 0x406841
mov ebx, dword [eax + 0x20]
cmp ebx, esi
jbe 0x406841
sub ebx, esi
jmp 0x406843
test edi, edi
jne 0x406767
cmp ecx, 0x10
mov dword [esp + 0x50], edi
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
mov byte [eax], 0
jmp 0x4067cf
push str.string_too_long
call fcn.0040f550
push str.invalid_string_position
call fcn.0040f580
xor ebx, ebx
mov eax, dword [eax + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x4068f3
cmp eax, 0x100
je 0x4068a8
push ebx
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406e70
mov ecx, eax
xor ebx, ebx
cmp dword [esp + 0x6c], 0x10
push edi
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push eax
push dword [ecx + 4]
lea eax, [esp + 0x48]
push dword [ecx]
push eax
push dword [ebp + 8]
call fcn.00406df0
add esp, 0x30
jmp 0x406917
cmp ecx, 0x10
lea eax, [esp + 0x40]
push edi
cmovae eax, dword [esp + 0x44]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406df0
mov ecx, eax
push ebx
push dword [ebp + 0x1c]
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov eax, dword [ecx + 4]
mov dword [ebp + 0x14], eax
lea eax, [esp + 0x44]
push dword [ecx + 4]
push dword [ecx]
push eax
push dword [ebp + 8]
call fcn.00406e70
add esp, 0x30
xor ebx, ebx
jmp 0x406917
cmp ecx, 0x10
lea eax, [esp + 0x40]
push edi
cmovae eax, dword [esp + 0x44]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00406df0
add esp, 0x18
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0x14], edx
cmp dword [esp + 0x50], edi
jae 0x406945
push 0x695
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VCincludexstring
push str.string_subscript_out_of_range
call fcn.0040f290
mov edx, dword [ebp + 0x14]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
sub esi, edi
push esi
mov esi, dword [ebp + 8]
add eax, edi
push eax
push edx
push ecx
lea eax, [esp + 0x34]
push eax
push esi
call fcn.00406df0
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x50]
push ebx
mov ecx, dword [eax]
push dword [ebp + 0x1c]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push edi
push esi
mov dword [ebp + 0x14], eax
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
call fcn.00406e70
add esp, 0x30
lea ecx, [esp + 0x5c]
call fcn.00402020
lea ecx, [esp + 0x3c]
call fcn.00402020
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00410850
mov esp, ebp
pop ebp
ret