Function at 0x461481
Capabilities:
Create thread
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5052a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
mov dword [ebp - 0x24c], ecx
lea ecx, [ebp - 0x20c]
call fcn.00401590
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
push 4
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00472380
add esp, 0xc
lea ecx, [ebp - 0x1a4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x461547
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
push str.WSAStartUp_Faild_With_Error:__d
lea eax, [ebp - 0x20c]
push eax
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x22c]
jmp 0x4619eb
mov edx, dword [ebp - 0x1a4]
and edx, 0xff
cmp edx, 2
jne 0x461575
mov eax, dword [ebp - 0x1a4]
and eax, 0xffff
sar eax, 8
and eax, 0xff
and eax, 0xff
cmp eax, 2
je 0x4615b2
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.The_Local_Net_Version_Is_not_2
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov dword [ebp - 0x230], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x230]
jmp 0x4619eb
push 0x64
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x46165c
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x461622
push 4
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00471ea0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x547f68
mov edx, dword [ebp + 0x10]
push edx
call fcn.0047321a
add esp, 0xc
jmp 0x46165a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push str.GetHostIp_faild_with_Error:__d
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
jmp 0x461694
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
push str.gethostname_faild_with_Error:__d
lea eax, [ebp - 0x20c]
push eax
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
cmp dword [ebp - 0x14], 0
jne 0x461711
push 1
mov ecx, dword [ebp - 0x24c]
add ecx, 8
call fcn.0042c410
and eax, 0xff
test eax, eax
jne 0x461711
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.Create_Client_Socket_Faild_:_d
lea edx, [ebp - 0x20c]
push edx
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x234], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x234]
jmp 0x4619eb
cmp dword [ebp - 0x14], 0
jne 0x4617a1
mov cx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 8
call fcn.0046267d
and eax, 0xff
test eax, eax
jne 0x4617a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.Create_Client_ConnServer_Faild_:_s__d__d
lea eax, [ebp - 0x20c]
push eax
call fcn.004d2181
add esp, 0x14
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x238], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x238]
jmp 0x4619eb
cmp dword [ebp - 0x14], 0
jne 0x46185d
mov dword [ebp - 0x214], 0
lea edx, [ebp - 0x218]
push edx
push 0
mov eax, dword [ebp - 0x24c]
push eax
push 0x460d05
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x461841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.Create_WorkThread_Faild_With_Error__d
lea edx, [ebp - 0x20c]
push edx
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x23c]
jmp 0x4619eb
push 2
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x46191a
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x21c]
push eax
push 0
mov ecx, dword [ebp - 0x24c]
push ecx
push 0x460e05
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x46190d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
push str.Create_RecvThread_Faild_With_Error__d
lea eax, [ebp - 0x20c]
push eax
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x240]
jmp 0x4619eb
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
jne 0x4619ca
lea edx, [ebp - 0x224]
push edx
push 0
mov eax, dword [ebp - 0x24c]
push eax
push 0x460bb2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
jne 0x4619bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
push str.Create_SEND_Thred_Faild_With_Error__d
lea edx, [ebp - 0x20c]
push edx
call fcn.004d2181
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.00458a80
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.004620ed
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x244], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x244]
jmp 0x4619eb
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x248], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
call fcn.004dcafe
mov eax, dword [ebp - 0x248]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc