Function at 0x409030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40e2e2
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
mov bl, byte [esp + 7]
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
xor esi, esi
lea ecx, [esp + 0x24]
push esi
mov byte [esp + 0x28], bl
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, [esp + 0x24]
mov dword [esp + 0xac], esi
push eax
push 0x43e750
call sub.MSVCP60.dll_class_std::basic_istream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_istream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
mov ecx, dword [0x43e750]
add esp, 8
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x43e754]
test al, 6
jne 0x409103
shr eax, 2
test al, 1
jne 0x409103
mov esi, 0x412a1c
mov eax, dword [esi - 4]
lea ecx, [esp + 0x24]
push eax
push ecx
call edi
add esp, 8
test al, al
je 0x4090b6
call dword [esi]
add esi, 8
cmp esi, str.shut_down
jl 0x4090a2
mov ecx, dword [esp + 0x28]
xor esi, esi
cmp ecx, esi
mov dword [esp + 0xac], 0xffffffff
je 0x4090f2
mov al, byte [ecx - 1]
test al, al
je 0x4090e8
cmp al, 0xff
je 0x4090e8
dec al
mov byte [ecx - 1], al
jmp 0x4090f2
dec ecx
push ecx
call fcn.0040c5b6
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
jmp 0x409059
mov dl, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], 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.Lost_socket_IO_stream
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
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
mov ebx, 3
je 0x409163
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov eax, ecx
mov esi, str.Lost_socket_IO_stream
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
xor esi, esi
mov byte [ecx + ebp], 0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0xb0], 1
call fcn.00401276
mov eax, dword [esp + 0x18]
mov byte [esp + 0xac], bl
cmp eax, esi
je 0x4091a5
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40919c
cmp al, 0xff
je 0x40919c
dec al
mov byte [ecx], al
jmp 0x4091a5
push ecx
call fcn.0040c5b6
add esp, 4
mov edi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srcclient_server_handler.cpp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], esi
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x40], 0x51
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 0x4091ff
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov eax, ecx
mov esi, str.C:UsersUserDesktopVC_65.2.20WinBattle_srcWinBattle_srcclient_server_handler.cpp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [ecx + ebp], 0
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x74], edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xac], 4
push ecx
lea ecx, [esp + 0x88]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x94]
push edx
mov byte [esp + 0xb0], 5
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [esp + 0x6c]
push 0x410c88
push eax
mov byte [esp + 0xb4], bl
mov dword [esp + 0x74], 0x4101b4
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebp
pop ebx
nop
nop
nop
nop
int3