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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e10c
mov eax, dword fs:[0]
push eax
sub esp, 0x314
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x300], edi
push 0xc0
lea eax, [ebp - 0x2f8]
push 0
push eax
call fcn.00407b40
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x402378
mov eax, dword [esi]
sub esp, 0xc
lea ecx, [ebp - 0x2f8]
push eax
call fcn.004043b0
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_fstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ebp + ecx - 0x2fc], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x294], 0
je 0x4026a2
xor eax, eax
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 7
mov word [ebp - 0x318], ax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 2
cmp dword [esi + 0x14], 0x10
jb 0x402412
mov esi, dword [esi]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004067d1
add esp, 8
test eax, eax
je 0x4026ce
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402433
mov ebx, dword [ebp - 0x220]
sub edx, ecx
mov ecx, dword [ebp - 0x224]
mov eax, ebx
sar edx, 1
sub eax, ecx
cmp edx, eax
ja 0x40249a
cmp ebx, 8
lea esi, [ebp - 0x234]
lea eax, [edx + edx]
cmovae esi, dword [ebp - 0x234]
lea edi, [ecx + edx]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], edi
push eax
lea ecx, [esi + ecx*2]
push ecx
call fcn.00407ca0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 0x234]
mov edi, dword [ebp - 0x300]
jmp 0x4024bb
push edx
lea eax, [ebp - 0x218]
mov byte [ebp - 0x21c], 0
push eax
push dword [ebp - 0x21c]
lea ecx, [ebp - 0x234]
push edx
call fcn.004056b0
push eax
lea ecx, [ebp - 0x318]
call fcn.00404e50
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x40250b
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402501
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026d8
push edx
push ecx
call fcn.00405a90
add esp, 8
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
cmp dword [ebp - 0x304], 8
lea eax, [ebp - 0x318]
push ecx
cmovae eax, dword [ebp - 0x318]
push eax
call fcn.00406740
add esp, 8
cmp eax, 8
je 0x4026c9
cmp eax, 0xffffffff
je 0x4026c9
cmp eax, 1
jne 0x4026c9
cmp dword [ebp - 0x304], 8
lea eax, [ebp - 0x318]
cmovae eax, dword [ebp - 0x318]
push eax
call fcn.00406701
mov ecx, eax
mov dword [ebp - 0x31c], edx
and ecx, edx
add esp, 4
cmp ecx, 0xffffffff
je 0x4026c9
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x304]
mov dword [ebp - 0x2fc], eax
cmp edx, 8
jb 0x4025eb
mov ecx, dword [ebp - 0x318]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4025db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026dd
push edx
push ecx
call fcn.00405a90
mov eax, dword [ebp - 0x2fc]
add esp, 8
push eax
call fcn.00405a9e
mov ebx, eax
add esp, 4
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2f8]
mov eax, dword [ebp - 0x2fc]
cdq
push edx
push eax
push ebx
call fcn.00403950
push 0
push 4
lea eax, [ebp - 0x2fc]
push eax
push dword [edi]
mov edi, dword [sym.imp.WS2_32.dll_send]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
mov eax, dword [ebp - 0x300]
push 0
push dword [ebp - 0x2fc]
push ebx
push dword [eax]
call edi
push 0x7d0
call esi
mov eax, dword [ebp - 0x300]
push dword [eax]
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [ebp - 0x2e0]
call fcn.004042a0
test eax, eax
jne 0x402699
mov eax, dword [ebp - 0x2f8]
lea ecx, [ebp - 0x2f8]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00401c10
push ebx
call fcn.0040585e
add esp, 4
lea ecx, [ebp - 0x2f8]
call fcn.004026f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret
call fcn.00402080
push str.invalid_char_filename_argument
call fcn.00406681
call fcn.0040bbf4
call fcn.0040bbf4
int3