Function at 0x40c584
Capabilities:
Create thread

Disassembly:
mov eax, 0x41c24b
call fcn.00417690
sub esp, 0x70
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
push eax
push ebx
push esi
push 0x402404
push ebx
push ebx
mov dword [ebp - 0x1c], esi
mov dword [esi + 0x18c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], ebx
call fcn.004155a0
mov dword [esi + 0x18c], eax
jmp 0x40c5d5
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
je 0x40c5f7
push ebx
push ebx
push dword [0x41d660]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x18c], ebx
jne 0x40c6ea
mov al, byte [ebp - 0x11]
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], 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_]
cmp byte [esi + 0xa7], bl
mov dword [ebp - 4], 2
je 0x40c66c
push dword [0x4272d4]
lea eax, [ebp - 0x3c]
push dword [0x42722c]
push eax
call fcn.00408730
add esp, 0xc
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 [ebp - 4], 3
push dword [ecx]
lea ecx, [ebp - 0x2c]
push ebx
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, [ebp - 0x3c]
mov byte [ebp - 4], 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_]
lea eax, [ebp - 0x2c]
push eax
call fcn.00410cc0
pop ecx
jmp 0x40c6aa
push dword [0x4272cc]
lea eax, [ebp - 0x3c]
push dword [0x42722c]
push eax
call fcn.00408730
add esp, 0xc
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 [ebp - 4], 4
push dword [ecx]
lea ecx, [ebp - 0x2c]
push ebx
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, [ebp - 0x3c]
mov byte [ebp - 4], 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_]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov esi, 0x41d64c
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x5c]
lea ecx, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::runtime_error::constructor_class_std::runtime_error_const__]
mov eax, dword [ebp - 0x40]
push 0x422e40
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], esi
call sub.MSVCRT.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret