Function at 0x4187b0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47e50d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x18]
push edi
mov dword [esp + 0x30], esi
mov byte [esp + 0x1c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x50]
mov dword [esp + 0x138], edi
call fcn.0044ef10
mov cl, byte [esp + 0x13]
mov dword [esp + 0x44], edi
mov byte [esp + 0x40], cl
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov al, byte [0x639d75]
mov byte [esp + 0x138], 2
cmp al, 1
jne 0x41885d
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 1
call fcn.00450030
lea ecx, [esp + 0x50]
mov byte [esp + 0x138], 0
call fcn.0044ef30
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4194f4
mov ecx, esi
mov byte [0x639d75], 1
call fcn.00417450
mov eax, 0x4c
mov edx, dword [0x639d78]
add eax, 4
cmp eax, 0x64
mov dword [eax + edx - 4], 3
jl 0x418870
lea ecx, [esp + 0x38]
call fcn.00450270
cmp dword [esp + 0x140], 1
jne 0x4188fb
mov ecx, dword [0x63b440]
push edi
lea eax, [esp + 0x54]
push edi
push eax
call fcn.00447600
test eax, eax
je 0x418917
mov ecx, dword [0x493790]
push ecx
mov ecx, esi
call fcn.0041a1e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 1
call fcn.00450030
lea ecx, [esp + 0x50]
mov byte [esp + 0x138], 0
call fcn.0044ef30
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x13c], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4194f4
mov ecx, dword [0x63b440]
lea edx, [esp + 0x50]
push edx
call fcn.0044a170
test eax, eax
je 0x418917
mov eax, dword [0x493790]
push eax
jmp 0x4188b6
push edi
call fcn.0044bb50
add esp, 4
lea ecx, [esp + 0x50]
mov ebp, eax
mov dword [esp + 0x28], edi
call fcn.0044f1e0
test eax, eax
jle 0x4193dd
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x54]
call fcn.004502e0
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4193c1
mov edx, dword [esp + 0x28]
mov esi, dword [ebp]
push edx
lea ecx, [esp + 0x54]
call fcn.004502e0
add eax, 0x3c
mov ecx, ebp
push eax
call dword [esi + 8]
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x94]
mov byte [esp + 0x94], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.which
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x94]
push ebx
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4189d3
mov edi, dword [esp + 0x94]
mov ecx, ebx
mov edx, ecx
mov esi, str.which
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x94]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [ebp]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x120]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x140], 3
call dword [eax + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x138], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x13c], 3
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x13c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x18]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x44], esp
push 0
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x3c]
call fcn.0041a190
test eax, eax
mov dword [esp + 0x30], eax
jl 0x4193c1
cmp eax, 5
jg 0x4193c1
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x50]
push edi
call fcn.004502e0
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add eax, 4
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov al, byte [esp + 0x18]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x44], esp
push 0
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.0041a190
mov edx, dword [esp + 0x30]
push edi
lea ecx, [edx + edx*4]
shl ecx, 5
sub ecx, edx
shl ecx, 2
mov dword [esp + 0x8c], ecx
lea ebx, [ecx + esi]
lea ecx, [esp + 0x54]
mov dword [esp + 0x38], ebx
mov dword [ebx + 0x10], eax
call fcn.004502e0
mov ecx, dword [eax + 0x28]
mov dl, byte [esp + 0x13]
mov dword [ebx + 8], ecx
push 0
lea ecx, [esp + 0xb4]
mov byte [esp + 0xb4], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.mode
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
push ecx
lea ecx, [esp + 0xb8]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418b94
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xb4]
mov ecx, eax
mov esi, str.mode
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xb4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x2c]
mov eax, dword [ebp]
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x100]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x140], 5
call dword [eax + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x138], 6
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x13c], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x13c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x18]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
mov ecx, edi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, esi
call fcn.0041a190
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0xa4], cl
lea ecx, [esp + 0xa4]
mov byte [ebx + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.base
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
push ecx
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418cae
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xa4]
mov ecx, eax
mov esi, str.base
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x2c]
mov eax, dword [ebp]
lea ecx, [esp + 0xa0]
lea edx, [esp + 0xe0]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x140], 7
call dword [eax + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x138], 8
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0xe4]
mov byte [esp + 0x13c], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x13c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x18]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
mov ecx, edi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, esi
call fcn.0041a190
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0xc4], cl
lea ecx, [esp + 0xc4]
mov byte [ebx + 0x7d], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x494268
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
push ecx
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418dc8
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc4]
mov ecx, eax
mov esi, 0x494268
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov esi, dword [esp + 0x2c]
mov eax, dword [ebp]
lea ecx, [esp + 0xc0]
lea edx, [esp + 0x110]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x140], 9
call dword [eax + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x138], 0xa
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x114]
mov byte [esp + 0x13c], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0xc4]
mov byte [esp + 0x13c], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [esp + 0x18]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, edi
mov byte [edi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x28]
mov edx, dword [ecx]
mov ecx, edi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, esi
call fcn.0041a190
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x6c], cl
lea ecx, [esp + 0x6c]
mov byte [ebx + 0x7e], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.starttai
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ecx
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x418ed4
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x6c]
mov ecx, eax
mov esi, str.starttai
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
mov byte [ecx + eax], 0
mov edx, dword [ebp]
lea eax, [esp + 0x68]
lea ecx, [esp + 0xf0]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x140], 0xb
call dword [edx + 0x18]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor edi, edi
mov byte [esp + 0x138], 0xc
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x13c], 0xb
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x138], 2
cmp eax, edi
je 0x418f54
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x418f4b
cmp al, 0xff
je 0x418f4b
dec al
mov byte [ecx], al
jmp 0x418f54
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dl, byte [esp + 0x18]
sub esp, 0x10
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], edi
mov edi, esp
mov dword [esp + 0x24], esp
push 0
mov ecx, edi
mov byte [edi], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x28]
mov ecx, dword [eax]
push ecx
push 0
push edx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, esi
call fcn.0041a190
mov byte [ebx + 0x7f], al
mov eax, dword [esp + 0x140]
cmp eax, 1
jne 0x418fd8
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x50]
push eax
call fcn.004502e0
add eax, 0x2c
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, dword [0x63b440]
call fcn.00449280
test eax, eax
jne 0x41943c
jmp 0x419002
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
push edx
call fcn.004502e0
mov ecx, dword [0x63b440]
add eax, 0x2c
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044a190
test eax, eax
jne 0x419493
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x54]
call fcn.004502e0
add eax, 0x2c
mov eax, dword [eax + 4]
test eax, eax
jne 0x41901f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.0044f1e0
test eax, eax
jle 0x419266
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004502e0
mov ecx, dword [eax + 0x54]
test ecx, ecx
je 0x41924c
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push esi
call fcn.004502e0
mov ebx, dword [eax + 0x50]
push esi
lea ecx, [esp + 0x3c]
call fcn.004502e0
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4190b5
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ebx, ebx
jl 0x41924c
cmp ebx, 4
jge 0x41924c
mov eax, dword [esp + 0x88]
lea edx, [ebx + ebx*4]
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x2c]
xor eax, eax
lea edx, [ecx + edx + 0x15]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov esi, dword [ebp]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004502e0
add eax, 0x10
mov ecx, ebp
push eax
call dword [esi + 8]
mov edi, str.role
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
mov dl, byte [esp + 0x13]
mov dword [esp + 0x7c], esi
not ecx
dec ecx
mov byte [esp + 0x78], dl
push ecx
push str.role
lea ecx, [esp + 0x80]
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebp]
lea ecx, [esp + 0x78]
lea edx, [esp + 0xd0]
push ecx
push edx
mov ecx, ebp
mov byte [esp + 0x140], 0xd
call dword [eax + 0x18]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x138], 0xe
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push esi
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0xd4]
cmp eax, esi
je 0x4191b2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4191a9
cmp al, 0xff
je 0x4191a9
dec al
mov byte [ecx], al
jmp 0x4191b2
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x7c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
mov byte [esp + 0x138], 2
je 0x4191f6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4191ed
cmp al, 0xff
je 0x4191ed
dec al
mov byte [ecx], al
jmp 0x4191f6
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [esp + 0x18]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x9c], esp
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov byte [ecx], al
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], esi
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x94], esi
mov eax, dword [edx]
lea edx, [esp + 0x28]
push eax
push esi
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x3c]
call fcn.0041a190
mov ecx, dword [esp + 0x34]
mov byte [ecx + ebx + 0x65], al
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x38]
inc esi
mov dword [esp + 0x14], esi
call fcn.0044f1e0
cmp esi, eax
jl 0x41905d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
push edx
call fcn.004502e0
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add esi, 0x14
mov eax, dword [eax]
mov ecx, dword [esi + 8]
mov ebx, ecx
cmp eax, ebx
jae 0x41928b
mov ebx, eax
lea edx, [esp + 0x18]
cmp edx, esi
jne 0x4192b2
push eax
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
push 0
push 0
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
jmp 0x41933d
test ebx, ebx
jbe 0x419300
cmp ebx, ecx
jne 0x419300
mov eax, dword [esi + 4]
test eax, eax
jne 0x4192c6
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax - 1], 0xfe
jae 0x419300
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esi + 4]
test eax, eax
jne 0x4192e4
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [esp + 0x1c], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x24], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x41933d
push 1
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x41933d
mov esi, dword [esi + 4]
test esi, esi
jne 0x41931e
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov dl, byte [esp + 0x18]
sub esp, 0x10
mov ecx, esp
xor eax, eax
mov dword [esp + 0x9c], esp
mov byte [ecx], dl
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [edx]
push edx
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x3c]
call fcn.0041a190
cmp eax, 2
jne 0x419391
mov ecx, dword [0x639d78]
mov edx, dword [esp + 0x30]
mov dword [ecx + edx*4 + 0x4c], 0x32
jmp 0x4193c1
mov ecx, dword [0x63ac80]
mov eax, 1
cmp ecx, eax
jne 0x4193b0
mov ecx, dword [0x639d78]
mov edx, dword [esp + 0x30]
mov dword [ecx + edx*4 + 0x4c], eax
jmp 0x4193c1
mov eax, dword [0x639d78]
mov ecx, dword [esp + 0x30]
mov dword [eax + ecx*4 + 0x4c], 2
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x50]
inc esi
mov dword [esp + 0x28], esi
call fcn.0044f1e0
cmp esi, eax
jl 0x418937
xor edi, edi
cmp ebp, edi
je 0x4193ea
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x38]
mov byte [0x639d75], 0
mov byte [esp + 0x138], 1
call fcn.00450030
lea ecx, [esp + 0x50]
mov byte [esp + 0x138], 0
call fcn.0044ef30
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x4194f4
mov al, byte [ecx - 1]
test al, al
je 0x4194ea
cmp al, 0xff
je 0x4194ea
dec al
mov byte [ecx - 1], al
jmp 0x4194f4
mov edx, dword [0x493794]
mov ecx, esi
push edx
call fcn.0041a1e0
test ebp, ebp
je 0x419457
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 1
call fcn.00450030
lea ecx, [esp + 0x50]
mov byte [esp + 0x138], 0
call fcn.0044ef30
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4194f4
mov al, byte [ecx - 1]
test al, al
je 0x4194ea
cmp al, 0xff
je 0x4194ea
dec al
mov byte [ecx - 1], al
jmp 0x4194f4
mov ecx, dword [0x493794]
push ecx
mov ecx, esi
call fcn.0041a1e0
test ebp, ebp
je 0x4194ae
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
lea ecx, [esp + 0x38]
mov byte [esp + 0x138], 1
call fcn.00450030
lea ecx, [esp + 0x50]
mov byte [esp + 0x138], 0
call fcn.0044ef30
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4194f4
mov al, byte [ecx - 1]
test al, al
je 0x4194ea
cmp al, 0xff
je 0x4194ea
dec al
mov byte [ecx - 1], al
jmp 0x4194f4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x12c
ret 4