Function at 0x418140
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48aad4
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4bd008]
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 ebx, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe8], 0
lea ecx, [ebp - 0xac]
push 8
push str.SMBGhost
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
call fcn.00403320
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc4]
push 0x310
push str.x00x00x00xc0xfex53x4dx42x40x00x00x00x00x00x00x00x00x00x1fx00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x24x00x08x00x01x00x00x00x7fx00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x78x00x00x00x02x00x00x00x02x02x10x02x22x02x24x02x00x03x02x03x10x03x11x03x00x00x00x00x01x00x26x00x00x00x00x00x01x00x20x00x01x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x00x03x00x0ax00x00x00x00x00x01x00x00x00x01x00x00x00x01x00x00x00x00x00x00x00
mov dword [ebp - 0x7c], 0x1f4
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
call fcn.00403320
push 0x64
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0044a330
add esp, 0xc
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov byte [ebp - 4], 2
call fcn.0043a6b0
test eax, eax
jne 0x4186ba
push eax
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
push 4
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xe4], edi
push eax
push 0x1006
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 0x7c]
push eax
push 0x1005
push 0xffff
push edi
call esi
cmp edi, 0xffffffff
je 0x4186ba
sub esp, 0x18
lea esi, [ebx + 0x1c]
mov ecx, esp
push esi
call fcn.00403180
push dword [ebx + 0x34]
lea eax, [ebp - 0xe4]
push eax
call fcn.0043a6f0
test eax, eax
jne 0x4186ba
lea edx, [ebp - 0xc4]
lea ecx, [ebp - 0x104]
call fcn.004429c0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4182ad
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [ebp - 0xe4]
call dword [sym.imp.WS2_32.dll_send]
mov edx, dword [ebp - 0xf0]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
dec ebx
cmp edx, 0x10
jb 0x418300
mov ecx, dword [ebp - 0x104]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4182f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186f1
push edx
push ecx
call fcn.004449d2
add esp, 8
test ebx, ebx
jne 0x4186ba
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0043a7d0
test eax, eax
jne 0x4186ba
cmp dword [ebp - 0x80], 0x10
lea eax, [ebp - 0x94]
cmovae eax, dword [ebp - 0x94]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
test eax, eax
je 0x4186ba
push eax
push 4
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00418720
push 2
push 0x44
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xdc]
call fcn.00418720
mov byte [ebp - 4], 4
mov ebx, 1
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov dword [ebp - 0xe8], ebx
jb 0x418393
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 2
push 0x4aae44
call fcn.004036a0
add esp, 8
test al, al
jne 0x4183eb
push 2
push 0x44
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00418720
mov ebx, 3
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4183ce
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 1
push 0x4aae48
call fcn.004036a0
add esp, 8
mov byte [ebp - 0xdd], 0
test al, al
je 0x4183f2
mov byte [ebp - 0xdd], 1
test bl, 2
je 0x41844c
mov edx, dword [ebp - 0xf0]
cmp edx, 0x10
jb 0x418431
mov ecx, dword [ebp - 0x104]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418427
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186f6
push edx
push ecx
call fcn.004449d2
add esp, 8
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0xf
mov byte [ebp - 0x104], 0
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x108]
cmp edx, 0x10
jb 0x41848d
mov ecx, dword [ebp - 0x11c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418483
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4186fb
push edx
push ecx
call fcn.004449d2
add esp, 8
cmp byte [ebp - 0xdd], 0
je 0x418684
mov edi, dword [ebp - 0xec]
lea ecx, [ebp - 0xac]
cmp dword [ebp - 0x98], 0x10
lea eax, [edi + 4]
cmovae ecx, dword [ebp - 0xac]
cmp dword [eax + 0x14], 0x10
jb 0x4184bf
mov eax, dword [eax]
cmp dword [esi + 0x14], 0x10
jb 0x4184c7
mov esi, dword [esi]
push ecx
push eax
push esi
lea eax, [ebp - 0x78]
push str._s__s__s
push eax
call fcn.00401410
add esp, 0x14
push 0x4c0f64
call fcn.0044684a
add esp, 4
test eax, eax
je 0x4184f5
push eax
call fcn.004463ca
add esp, 4
sub esp, 0x18
lea ecx, [ebp - 0x78]
mov edx, esp
mov dword [ebp - 0xec], esp
lea esi, [ecx + 1]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0xf
mov byte [edx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418517
sub ecx, esi
lea eax, [ebp - 0x78]
push ecx
push eax
mov ecx, edx
call fcn.00403320
mov byte [ebp - 4], 5
push dword [edi + 0x34]
push 1
push 1
sub esp, 0x18
mov ecx, esp
push 3
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x4aae4c
mov byte [ecx], 0
call fcn.00403320
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
call fcn.00419430
push eax
mov byte [ebp - 4], 6
call fcn.00409b20
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
call fcn.00419570
push 0x4c0f64
call fcn.0044686f
add esp, 4
test eax, eax
je 0x41859b
push eax
call fcn.004463ca
add esp, 4
push dword [ebp - 0xe4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 0xc8]
cmp edx, 0x10
jb 0x4185e1
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4185d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418700
push edx
push ecx
call fcn.004449d2
add esp, 8
mov edx, dword [ebp - 0x80]
cmp edx, 0x10
jb 0x418618
mov ecx, dword [ebp - 0x94]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41860e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418705
push edx
push ecx
call fcn.004449d2
add esp, 8
mov edx, dword [ebp - 0xb0]
cmp edx, 0x10
jb 0x418652
mov ecx, dword [ebp - 0xc4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x418648
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41870a
push edx
push ecx
call fcn.004449d2
add esp, 8
mov edx, dword [ebp - 0x98]
cmp edx, 0x10
jb 0x4186d5
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4186cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41870f
jmp 0x4186cb
mov edx, dword [ebp - 0xc8]
cmp edx, 0x10
jb 0x4186ba
mov ecx, dword [ebp - 0xdc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4186b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x418714
push edx
push ecx
call fcn.004449d2
add esp, 8
push dword [ebp - 0xe4]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4185e1
push edx
push ecx
call fcn.004449d2
add esp, 8
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.00444991
mov esp, ebp
pop ebp
ret
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
call fcn.0045abc1
int3