Function at 0x45c320
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 0x55a48b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x5c9ea4]
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.0045b390
xor ebx, ebx
xor edi, edi
mov dword [0x5d0ad0], 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 0x45c394
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____WSAStartup_fails__Code__lu.
call fcn.00459870
add esp, 8
jmp 0x45c668
mov eax, dword [ebp - 0x2bc]
cmp al, 2
jne 0x45c62a
shr eax, 8
cmp al, 2
jne 0x45c62a
push 0x5d0aac
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 0x45c614
push 0
push 0
lea eax, [ebp - 0x114]
mov dword [ebp - 0x124], 0x25a207b9
push eax
push 4
push 0x5d0ac4
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 0x45c614
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x45c614
push 0x100
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x45c460
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [0x5d0acc], eax
jmp 0x45c465
mov eax, dword [0x5d0acc]
test eax, eax
je 0x45c521
mov eax, dword [eax + 0xc]
cmp dword [eax], ebx
je 0x45c521
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.0045b520
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.00459870
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov edx, dword [ebp - 0x118]
cmp edx, 8
jb 0x45c50f
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45c505
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45c684
push edx
push ecx
call fcn.00518414
add esp, 8
mov eax, dword [0x5d0acc]
mov eax, dword [eax + 0xc]
cmp dword [esi + eax], 0
jne 0x45c480
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x5d0ac8], eax
test eax, eax
jne 0x45c551
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_create_io_completion_port__Code__lu.
call fcn.00459870
add esp, 8
jmp 0x45c637
call fcn.0045b640
test eax, eax
jne 0x45c573
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_get_subnets__Code__lu.
call fcn.00459870
add esp, 8
jmp 0x45c637
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x45b8f0
push 0
push 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x45c5a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_create_host_thread__Code__lu.
call fcn.00459870
add esp, 8
jmp 0x45c637
push 0
push 0
push 0
push 0x45c040
push 0
push 0
call esi
mov edi, eax
test edi, edi
jne 0x45c5d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_create_port_scan_thread__Code__lu.
call fcn.00459870
add esp, 8
jmp 0x45c637
push 0
push 1
push 0
push dword [0x5d0ac8]
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.00459870
add esp, 4
or ecx, 0xffffffff
call fcn.0045bc10
push 0xffffffffffffffff
push ebx
call esi
push str.___Host_handler_finished
jmp 0x45c62f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Cant_get_ConnectEx__Code__lu.
call fcn.00459870
add esp, 8
jmp 0x45c637
push str.____Network_stack_is_outdated.
call fcn.00459870
add esp, 4
push 0x5d0aac
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [0x5d0ac8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45c654
push eax
call esi
test ebx, ebx
je 0x45c65b
push ebx
call esi
test edi, edi
je 0x45c662
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.005181d3
mov esp, ebp
pop ebp
ret
call fcn.00533a91
int3