Function at 0x4059a3
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
push ebx
push ebp
push esi
push edi
push 0x40aa20
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test esi, esi
je 0x4059e5
push esi
push str.Fatal:_Could_not_initialize_Windows_sockets__Error:__d_._n
call fcn.00403fcc
pop ecx
jmp 0x405cec
call fcn.0040526c
cmp dword [0x40a8b0], 0
mov ebp, str.Warning:_Cant_read__s:__s_n
mov edi, dword [sym.imp.msvcrt.dll_strerror]
mov ebx, dword [sym.imp.msvcrt.dll__errno]
je 0x405a26
mov cl, 1
call fcn.004050ce
test eax, eax
jne 0x405a26
call ebx
push dword [eax]
call edi
pop ecx
push eax
push dword [0x40a8b0]
push ebp
call fcn.00403fcc
add esp, 0xc
call fcn.0040200b
cmp byte [0x40a885], 0
mov esi, dword [0x40a880]
jne 0x405a67
mov al, byte [esi + 9]
and al, 1
mov byte [0x40a743], al
mov ax, word [0x40a88c]
test ax, ax
je 0x405a67
cmp byte [0x40a742], 0
je 0x405a67
mov ecx, 0x1db1
cmp ax, cx
seta byte [0x40a743]
movzx eax, byte [esi + 8]
shl eax, 4
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x405a89
call fcn.00401dca
mov esi, dword [0x40a880]
mov ecx, eax
movzx eax, byte [esi + 8]
shl eax, 4
push eax
push 0
push ecx
mov dword [0x40aa48], ecx
call sub.msvcrt.dll_memset
and dword [0x40a840], 0
add esp, 8
mov dword [0x40a778], 1
jmp 0x405ad6
cmp eax, 0x61
jne 0x405ad5
mov ecx, dword [0x40aa04]
xor dl, dl
push str.command_line
call fcn.00404eca
pop ecx
test eax, eax
je 0x405cf7
push ecx
call fcn.00405df0
pop ecx
test eax, eax
jg 0x405ab5
cmp dword [0x40a8b0], 0
je 0x405b0b
mov cl, 2
call fcn.004050ce
test eax, eax
jne 0x405b0b
call ebx
push dword [eax]
call edi
pop ecx
push eax
push dword [0x40a8b0]
push ebp
call fcn.00403fcc
add esp, 0xc
cmp byte [0x40a887], 0
je 0x405b19
call fcn.004022a0
call fcn.00405795
cmp byte [0x40a8ad], 0
je 0x405b33
push ecx
call fcn.00403e5d
pop ecx
jmp 0x405cef
cmp dword [0x40a8b4], 0
je 0x405b4a
cmp byte [0x40a876], 0
jne 0x405b60
call fcn.00406688
cmp byte [0x40a876], 0
jne 0x405b60
call fcn.004057e4
test eax, eax
jne 0x405cef
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.msvcrt.dll_srand]
pop ecx
mov cl, byte [0x40a742]
cmp cl, 1
jne 0x405b84
call fcn.004027d9
mov cl, byte [0x40a742]
cmp byte [0x40a886], 0
je 0x405c64
mov edx, dword [0x40a880]
xor ebx, ebx
cmp byte [edx + 8], bl
jbe 0x405c64
xor edi, edi
xor ebp, ebp
mov esi, dword [edx + ebp + 0x48]
mov edx, esi
lea eax, [edx + 1]
mov dword [esp + 0x10], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x405bb3
sub edx, dword [esp + 0x10]
lea eax, [edx + 1]
add eax, esi
mov edx, eax
mov dword [esp + 0x10], eax
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x405bd0
sub edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc eax
add eax, edx
mov edx, str.unknown
cmp byte [eax], 0
cmovne edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [0x40aa48]
mov eax, dword [edi + edx]
test eax, eax
je 0x405c1c
mov esi, eax
cmp cl, 1
jne 0x405c0c
cmp byte [edi + edx + 0xc], 0
jne 0x405c15
cmp cl, 2
jne 0x405c28
test eax, eax
jne 0x405c28
mov eax, str.random
jmp 0x405c2d
cmp cl, 2
jne 0x405c00
mov esi, 0x40818d
jmp 0x405c11
mov eax, str.fixed
push esi
push eax
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push str.Using_CSVLK__s___s__with__s_ePID__s_n
call fcn.00403fbc
mov edx, dword [0x40a880]
add esp, 0x14
inc ebx
add ebp, 0x20
add edi, 0x10
movzx eax, byte [edx + 8]
cmp ebx, eax
jge 0x405c64
mov cl, byte [0x40a742]
jmp 0x405ba6
cmp byte [0x40a76c], 0
jne 0x405c91
push 1
push 0x405248
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x405c91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Warning:_Could_not_register_Windows_signal_handler:_Error__u_n
call fcn.00403fbc
pop ecx
pop ecx
call fcn.004056e0
cmp byte [0x40a876], 0
jne 0x405cb0
push str.1113__built_2020_03_28_17:29:45_UTC
push str.vlmcsd__s_started_successfully_n
call fcn.00403fbc
pop ecx
pop ecx
cmp byte [0x40a76c], 0
je 0x405cc9
push 0xc8
push 4
xor edx, edx
pop ecx
call fcn.00403974
pop ecx
call fcn.00403885
cmp byte [0x40a88f], 0
mov esi, eax
jne 0x405ce0
call fcn.00405747
jmp 0x405ced
xor ecx, ecx
xor edx, edx
push 0
inc ecx
call fcn.00403974
pop ecx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040492f
int3