Function at 0x45cb60
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55af8b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5caea4]
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
xor ecx, ecx
call fcn.0045bbd0
xor ebx, ebx
xor edi, edi
mov dword [0x5d1b04], ebx
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [ebp - 0x2bc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x45cbd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____WSAStartup_fails__Code__lu.
call fcn.0045a000
add esp, 8
jmp 0x45cea8
mov eax, dword [ebp - 0x2bc]
cmp al, 2
jne 0x45ce6a
shr eax, 8
cmp al, 2
jne 0x45ce6a
push 0x5d1ae0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x45ce54
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x124], 0x25a207b9
push eax
push 4
push 0x5d1af8
push 0x10
lea eax, [ebp - 0x124]
mov dword [ebp - 0x120], 0x4660ddf3
push eax
push 0xc8000006
push esi
mov dword [ebp - 0x11c], 0xe576e98e
mov dword [ebp - 0x118], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x45ce54
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x45ce54
push 0x100
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x45cca0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x5d1b00], eax
jmp 0x45cca5
mov eax, dword [0x5d1b00]
test eax, eax
je 0x45cd61
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
je 0x45cd61
xor esi, esi
nop word [eax + eax]
mov eax, dword [esi + eax]
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x12c]
lea esi, [esi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x114], eax
call fcn.0045bd60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x118], 8
cmovae eax, dword [ebp - 0x12c]
push eax
push str.___Current_IP:__s
call fcn.0045a000
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x45cd4f
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45cd45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45cec4
push edx
push ecx
call fcn.00518d68
add esp, 8
mov eax, dword [0x5d1b00]
mov eax, dword [eax + 0xc]
cmp dword [esi + eax], 0
jne 0x45ccc0
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x5d1afc], eax
test eax, eax
jne 0x45cd91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_create_io_completion_port__Code__lu.
call fcn.0045a000
add esp, 8
jmp 0x45ce77
call fcn.0045be80
test eax, eax
jne 0x45cdb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_get_subnets__Code__lu.
call fcn.0045a000
add esp, 8
jmp 0x45ce77
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x45c130
push 0
push 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x45cde9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_create_host_thread__Code__lu.
call fcn.0045a000
add esp, 8
jmp 0x45ce77
push 0
push 0
push 0
push 0x45c880
push 0
push 0
call esi
mov edi, eax
test edi, edi
jne 0x45ce16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_create_port_scan_thread__Code__lu.
call fcn.0045a000
add esp, 8
jmp 0x45ce77
push 0
push 1
push 0
push dword [0x5d1afc]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push edi
call esi
push str.___Port_scan_finished
call fcn.0045a000
add esp, 4
or ecx, 0xffffffff
call fcn.0045c450
push 0xffffffffffffffff
push ebx
call esi
push str.___Host_handler_finished
jmp 0x45ce6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_get_ConnectEx__Code__lu.
call fcn.0045a000
add esp, 8
jmp 0x45ce77
push str.____Network_stack_is_outdated.
call fcn.0045a000
add esp, 4
push 0x5d1ae0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x5d1afc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45ce94
push eax
call esi
test ebx, ebx
je 0x45ce9b
push ebx
call esi
test edi, edi
je 0x45cea2
push edi
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
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.00518b27
mov esp, ebp
pop ebp
ret
call fcn.005343f1
int3