Function at 0x406d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40dafd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], esi
mov eax, dword [esi + 0x151]
mov dword [ebp - 4], 0
test eax, eax
jne 0x406f2e
lea eax, [ebp - 0x50]
push 0x4119a0
push eax
mov dword [ebp - 0x50], 0x1f
call sub.MSVCRT.dll__CxxThrowException
mov cl, byte [ebp - 0x11]
xor ebx, ebx
mov byte [ebp - 0x64], cl
push ebx
lea ecx, [ebp - 0x64]
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.aGdkYW1_BHB9dgVMDlIdNxldXFIYQUlPGXZQXUgZU1ACF0eRVpQQlhDC1ZRRFhBBigJVlFKXwpUUlAJQExPFl0NPgYWV15TCH9odklaTE8AGBsjFRRjXFVIWE9bUR1MWREaOwwRQRxDTkEdekdKUExSB2UfPRUWV15TCHNLR2ZfQEQaQigyFU8cQ05BHWRNVXJcWSdAHXUVQFcKfxx2U3lMRUwPEU4bdyJdUVRTRUVDWksdTFkRGhsiH1dAU1gKVFJQCX5ISBpmDDReXUpDGlZLUlhKXQdEDFNSLBdRRFVEQR9PTUAfQGoRUw4AhZXXlMIX09BR1JbDxFOG3cyWUBlWk1UREELdnFkWEEXNQNbQE9GUB9PTUAfXEUbGBsjFRRQR0RHXUNQS0dfSBFBUD4IXR5UQV1_aXhGHUxZERoTKAlLVkpaClRSUAlAWlFaUwY
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.aGdkYW1_BHB9dgVMDlIdNxldXFIYQUlPGXZQXUgZU1ACF0eRVpQQlhDC1ZRRFhBBigJVlFKXwpUUlAJQExPFl0NPgYWV15TCH9odklaTE8AGBsjFRRjXFVIWE9bUR1MWREaOwwRQRxDTkEdekdKUExSB2UfPRUWV15TCHNLR2ZfQEQaQigyFU8cQ05BHWRNVXJcWSdAHXUVQFcKfxx2U3lMRUwPEU4bdyJdUVRTRUVDWksdTFkRGhsiH1dAU1gKVFJQCX5ISBpmDDReXUpDGlZLUlhKXQdEDFNSLBdRRFVEQR9PTUAfQGoRUw4AhZXXlMIX09BR1JbDxFOG3cyWUBlWk1UREELdnFkWEEXNQNbQE9GUB9PTUAfXEUbGBsjFRRQR0RHXUNQS0dfSBFBUD4IXR5UQV1_aXhGHUxZERoTKAlLVkpaClRSUAlAWlFaUwY
lea ecx, [ebp - 0x64]
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_]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004080c0
mov dl, byte [ebp - 0x11]
sub esp, 0x10
mov esi, esp
mov dword [ebp - 0x48], esp
push ebx
mov ecx, esi
mov byte [ebp - 4], 3
mov byte [esi], 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.826_15_3__t6_p
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.826_15_3__t6_p
mov ecx, 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_]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
lea eax, [ebp - 0x11]
sub esp, 0x10
lea ecx, [ebp - 0x64]
mov esi, esp
mov dword [ebp - 0x40], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x44]
call fcn.00408220
mov dl, byte [ebp - 0x11]
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x38], dl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x406e21
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]
lea ecx, [ebp - 0x38]
push 0x414318
push ecx
push eax
call fcn.00408640
add esp, 0xc
xor edi, edi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x406ec7
mov edx, dword [ebp - 0x30]
sub edx, eax
sar edx, 4
cmp ebx, edx
jae 0x406ec7
lea esi, [edi + eax]
push 0
lea ecx, [ebp - 0x24]
mov al, byte [esi]
mov byte [ebp - 0x24], 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]
mov edx, dword [ecx]
lea ecx, [ebp - 0x24]
push edx
push 0
push 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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 7
test eax, eax
jne 0x406e84
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]
push 0
push eax
call fcn.00408530
add esp, 8
test eax, eax
jne 0x406ea8
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
inc ebx
add edi, 0x10
jmp 0x406e35
mov eax, dword [ebp - 0x28]
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
mov dword [eax + 0x151], 1
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 [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 5
cmp eax, edi
mov esi, eax
je 0x406ee7
push 0
mov ecx, esi
call fcn.00408060
add esi, 0x10
cmp esi, edi
jne 0x406ed4
mov eax, dword [ebp - 0x34]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x34], eax
push 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004080f0
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
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, 0x406f2b
ret
mov eax, dword [esi + 0x151]
mov dword [ebp - 4], 8
test eax, eax
jne 0x4070da
lea ecx, [ebp - 0x54]
push 0x4119a0
push ecx
mov dword [ebp - 0x54], 0x20
call sub.MSVCRT.dll__CxxThrowException
mov ecx, 0xb
xor eax, eax
lea edi, [ebp - 0xa3]
mov byte [ebp - 0xa4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0xa4]
push edx
stosb byte es:[edi], al
call fcn.0040a890
mov al, byte [ebp - 0x11]
add esp, 4
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
push 0
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 edi, [ebp - 0xa4]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x24]
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 0x406fd6
mov edi, dword [ebp - 0x20]
mov ecx, ebx
mov edx, ecx
lea esi, [ebp - 0xa4]
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, [ebp - 0x24]
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_]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x406ffa
xor ebx, ebx
jmp 0x407025
mov ecx, dword [ebp - 0x1c]
mov al, byte [esi - 1]
test al, al
lea ebx, [ecx + esi]
je 0x40701a
cmp al, 0xff
je 0x40701a
push 0
push ecx
lea ecx, [ebp - 0x24]
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_]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x407025
mov byte [esi - 1], 0xff
mov esi, dword [ebp - 0x20]
cmp esi, ebx
je 0x407041
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_tolower]
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebx
jne 0x407029
mov esi, dword [ebp - 0x20]
mov ecx, dword [str.vbox]
mov dl, byte [0x414314]
mov eax, dword [str.virtual]
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x41430c]
mov byte [ebp - 0x3c], dl
test esi, esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
jne 0x40706e
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]
lea edx, [ebp - 0x40]
push edx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
call esi
add esp, 8
test eax, eax
jne 0x40709c
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40708e
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]
lea ecx, [ebp - 0x4c]
push ecx
push eax
call esi
add esp, 8
test eax, eax
je 0x4070a9
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x151], 2
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4070d1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4070c8
cmp al, 0xff
je 0x4070c8
dec al
mov byte [ecx], al
mov eax, 0x4070d7
ret
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0x4070d7
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push esi
push 0x407120
push 0
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
push 0
push 0
push esi
push 0x4073f0
push 0
push 0
call edi
push eax
call ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret