Function at 0x413310
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x5c4920]
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
mov eax, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x2f8]
push ecx
xor edi, edi
push 0x202
mov dword [ebp - 0x300], ebx
mov dword [ebx + 0x6c], edi
mov dword [ebx + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x2ec
call fcn.0043db91
add esp, 4
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x413386
push ebx
push eax
call fcn.0041d4f0
jmp 0x413388
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebx + 0xc]
mov dword [ebx + 8], eax
call fcn.0042f7b0
test eax, eax
je 0x413447
push 0x28
call fcn.0043db91
mov esi, eax
add esp, 4
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 4], 1
cmp esi, edi
je 0x4133f8
mov eax, dword [ebx + 8]
mov edi, dword [eax + 0xd8]
call fcn.00418ad0
mov dword [esi], eax
add esi, 8
mov ecx, esi
call fcn.00412e90
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov byte [ebp - 4], 2
call fcn.00416780
mov eax, dword [ebp - 0x2fc]
jmp 0x4133fa
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x348]
mov dword [ebx + 0x60], eax
call fcn.00419d50
lea eax, [ebx + 0xc]
mov edx, edi
push eax
mov dword [ebp - 4], 3
mov edi, dword [ebx + 8]
push edx
call fcn.0041d970
mov edi, eax
test edi, edi
jne 0x41344e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
mov dword [ebp - method.CConfigInfo.virtual_0], vtable.CConfigInfo.0
call fcn.00419f00
xor eax, eax
jmp 0x41364d
push 0x11c
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.00538700
xor eax, eax
lea edx, [ebp - 0x130]
xor ecx, ecx
push edx
mov word [ebp - 0x30], cx
mov dword [ebp - 0x2e], eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
call fcn.0042dbc0
lea ebx, [ebp - 0x30]
call fcn.0042dae0
lea ebx, [ebp - 0xc4]
call fcn.0042dc50
mov eax, ebx
push eax
push str.UID___s__r_n
mov dword [ebp - 0x304], 0x64
call fcn.00534be3
add esp, 0x18
lea ecx, [ebp - 0x304]
push ecx
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0xb0]
push eax
push str.PCName___s__r_n
call fcn.00534be3
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 8
lea ecx, [ebp - 0x30]
push ecx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x4134fb
xor eax, eax
jmp 0x413514
lea esi, [eax + eax]
mov eax, esi
call fcn.0053b7a0
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.00406af0
mov ecx, dword [eax]
mov dword [ebp - 0x154], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x150], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x14c], ecx
mov edx, dword [eax + 0xc]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x148], edx
call ebx
inc eax
cmp eax, 0x3fffffff
jle 0x413549
xor eax, eax
jmp 0x413562
lea esi, [eax + eax]
mov eax, esi
call fcn.0053b7a0
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.00406af0
mov edx, dword [eax]
mov dword [ebp - 0x144], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x140], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x13c], edx
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x3e0]
push ecx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0xc8], edi
call fcn.00413c30
push edi
lea edx, [ebp - 0x3e0]
push str.listen_port
push edx
mov byte [ebp - 4], 4
call fcn.00416a80
add esp, 8
push eax
call fcn.00413720
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x3e0]
call fcn.00413d10
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x4135d0
mov eax, dword [eax]
push eax
push str.Listen_Port___s__r_n
call fcn.00534be3
add esp, 8
cmp dword [ebp - 0x38], esi
jb 0x4135ef
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0043dbc0
add esp, 4
mov ecx, dword [ebp - 0x300]
mov edi, dword [ecx + 8]
add edi, 0x1d0
mov ecx, 0x47
lea esi, [ebp - 0x168]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x3e0]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
mov byte [ebp - 4], 3
call fcn.00412fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
mov dword [ebp - method.CConfigInfo.virtual_0], vtable.CConfigInfo.0
call fcn.00419f00
mov eax, 1
lea esp, [ebp - 0x3f0]
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.0053129a
mov esp, ebp
pop ebp
ret 4