Function at 0x4c47c0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586075
mov eax, dword fs:[0]
push eax
sub esp, 0x344
mov eax, dword [0x5f8310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x318]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [ebp - 4], 1
push 0x5f87ac
lea ecx, [ebp - 0x314]
call fcn.005686b0
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x334], esp
push str.getip
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x338]
push eax
call fcn.004c4ac0
add esp, 8
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
mov dword [ebp - 0x350], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x350]
push edx
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x338]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea eax, [ebp - 0x2ac]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0
jne 0x4c4941
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
je 0x4c4941
mov eax, dword [ebp - 0x330]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movsx eax, byte [edx + 3]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x330]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
movsx ecx, byte [eax + 2]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x330]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
movsx edx, byte [ecx + 1]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x330]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movsx eax, byte [edx]
and eax, 0xff
push eax
push str._d._d._d._d
lea ecx, [ebp - 0x32c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea edx, [ebp - 0x32c]
push edx
push 0x5a5e80
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_2539]
add esp, 0xc
push 0x5a5e84
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.004089d0
add esp, 8
movzx edx, al
test edx, edx
je 0x4c49bf
mov dword [ebp - 0x33c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x314]
call fcn.005687e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x318]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x33c]
jmp 0x4c4a98
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
call fcn.00421fc0
add esp, 8
movzx edx, al
test edx, edx
je 0x4c4a22
mov dword [ebp - 0x340], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x314]
call fcn.005687e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x318]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x340]
jmp 0x4c4a98
mov dword [ebp - 0x344], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x314]
call fcn.005687e0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x318]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [ebp - 0x344]
jmp 0x4c4a98
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005795a6
mov esp, ebp
pop ebp
ret