Function at 0x4059e0
Capabilities:
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x40af14
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x410018]
xor eax, esp
mov dword [esp + 0x364], eax
push ebx
push esi
push edi
mov eax, dword [0x410018]
xor eax, esp
push eax
lea eax, [esp + 0x378]
mov dword fs:[0], eax
mov eax, dword [0x412b28]
mov ecx, dword [0x412b30]
mov edx, dword [0x412b10]
add ecx, eax
mov eax, dword [0x412b18]
add eax, edx
cmp eax, ecx
jge 0x405c8e
push 0xc
call fcn.004070c0
add esp, 4
test al, al
je 0x405b09
push 0x7d000
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
mov eax, dword [0x412b30]
sub eax, dword [0x412b18]
add esp, 4
sub eax, dword [0x412b10]
mov ecx, 0x412b40
add eax, dword [0x412b28]
cmp eax, 0x7d000
mov dword [0x4124c0], eax
jle 0x405b10
push 0x7d000
push ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
mov edx, dword [0x412b44]
push 0xa
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__itoa]
add esp, 0xc
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, dword [sym.imp.WS2_32.dll_send]
xor esi, esi
mov eax, dword [0x4124e4]
push 0
mov ecx, 0x7d000
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call edi
cmp eax, 0xffffffff
je 0x405af4
add esi, eax
cmp esi, 0x7d000
jl 0x405ac3
add dword [0x412b10], 0x7d000
jmp 0x405b5d
lea ecx, [esp + 0x14]
mov dword [esp + 0x380], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x405c90
push eax
push ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___int_]
mov edx, dword [0x412b44]
push 0xa
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__itoa]
add esp, 0xc
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, dword [0x4124c0]
push ebx
call fcn.00407080
add esp, 4
test al, al
je 0x405af4
mov ecx, dword [0x4124c0]
add dword [0x412b10], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x380], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
mov edx, dword [0x412b10]
mov eax, dword [0x412b18]
mov ecx, dword [0x412b28]
add eax, edx
mov edx, dword [0x412b30]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
add edx, ecx
mov dword [esp + 0x14], edx
add esp, 4
fidiv dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul qword [0x40c868]
call fcn.0040ab30
cmp eax, 0x19
je 0x405bd1
cmp eax, 0x32
je 0x405bd1
cmp eax, 0x4b
je 0x405bd1
cmp eax, 0x64
jne 0x405c52
mov esi, dword [sym.imp.MSVCR90.dll__itoa]
push 0xa
lea ecx, [esp + 0x170]
push ecx
push eax
call esi
add esp, 0xc
lea edx, [esp + 0x16c]
push edx
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x380], 2
mov eax, dword [0x412b10]
mov ecx, dword [0x412b18]
push 0xa
lea edx, [esp + 0x274]
add eax, ecx
push edx
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x270]
push eax
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x30]
mov dword [esp + 0x380], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [0x412b28]
mov ecx, dword [0x412b30]
mov eax, dword [0x412b18]
add ecx, edx
mov edx, dword [0x412b10]
add eax, edx
cmp eax, ecx
jne 0x405c8e
push 0xb
call fcn.004070c0
add esp, 4
test al, al
je 0x405b09
mov ecx, 0x412b40
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ifstream_char__struct_std::char_traits_char__::close_void_]
mov al, 1
mov ecx, dword [esp + 0x378]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x364]
xor ecx, esp
call fcn.00409cfa
add esp, 0x374
ret