Function at 0x4052d4
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x1c
call fcn.0047a2e4
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
add ebx, 8
push ebx
push 0x109
call fcn.0047a2e4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x49d424
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x101
rep stosb byte es:[edi], al
add ebx, 4
push ebx
push 0x89
call fcn.0047a2e4
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x49d42c
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x81
rep stosb byte es:[edi], al
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push 2
push 2
mov ebx, 0xa00
call fcn.0047d230
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 4]
push eax
push 0x18e
call fcn.0047a2e4
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x405427
push 0x49
push 0x4090ae5
push 6
call fcn.0047a2f0
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x14]
push ebx
mov edi, dword [ebp - 0x18]
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.0047bcc0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x405474
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x405472
imul eax, dword [edi]
jmp 0x405467
mov ecx, eax
cmp ecx, 0x101
jle 0x405481
mov ecx, 0x101
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x101
push ebx
push edi
push 1
mov eax, 2
call fcn.0047bcc0
add esp, 4
pop edi
pop ebx
push ebx
push edi
mov edi, dword [edi]
mov ecx, dword [edi]
add edi, 4
test ecx, ecx
je 0x4054bf
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x4054bd
imul eax, dword [edi]
jmp 0x4054b2
mov ecx, eax
cmp ecx, 0x81
jle 0x4054cc
mov ecx, 0x81
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 0x81
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0047a2ea
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40551b
mov eax, 0x49d2b0
jmp 0x40560f
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0047d030
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x405550
push ebx
call fcn.0047a2ea
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0x100
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.WS2_32.dll_gethostname]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x405585
push 0x13e
push 0x4090ae5
push 6
call fcn.0047a2f0
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4055c5
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4055bb
push 0x17b
push 0x4090ae5
push 6
call fcn.0047a2f0
add esp, 0xc
mov eax, 0x49d2b0
jmp 0x40560f
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4055ee
push 0x1e2
push 0x4090ae5
push 6
call fcn.0047a2f0
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40560a
push eax
mov ebx, eax
call fcn.00401358
inc eax
push eax
call fcn.0047a2e4
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40560f
push eax
mov ebx, dword [ebp - 4]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0047a2ea
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.0047a2ea
add esp, 4
pop ebx
call fcn.0047a2ea
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40564c
push ebx
call fcn.0047a2ea
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret