Function at 0x401820
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5560d4
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x5ad880]
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 esi, esi
push 0x202
mov dword [ebp - 0x300], ebx
mov dword [ebx + 0x70], esi
mov dword [ebx + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x2e8
call fcn.004302c3
add esp, 4
mov dword [ebp - 0x304], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x401896
push ebx
push eax
call fcn.00408ce0
jmp 0x401898
xor eax, eax
mov dword [ebp - 4], 0xffffffff
lea esi, [ebx + 0x10]
mov dword [ebx + 8], eax
call fcn.004280e0
test eax, eax
je 0x401915
lea edi, [ebp - 0x348]
call fcn.00406bd0
mov dword [ebp - 4], 1
mov ebx, dword [ebx + 8]
call fcn.00409160
mov ecx, ebx
mov edi, eax
call fcn.00409630
test eax, eax
jne 0x4018e3
push eax
push eax
push str.WebEnginServer_Iocp_Create_Failed.
call fcn.00432901
jmp 0x4018f9
lea edx, [ebp - 0x348]
mov dword [ebx + 0x120], esi
mov dword [ebx + 0x128], edx
test edi, edi
jne 0x40191c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
mov dword [ebp - method.CConfigInfo.virtual_0], vtable.CConfigInfo.0
call fcn.00406d80
xor eax, eax
jmp 0x401b1b
push 0x11c
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.005296a0
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.004200b0
lea ebx, [ebp - 0x30]
call fcn.0041ffd0
lea ebx, [ebp - 0xc4]
call fcn.00420140
mov eax, ebx
push eax
push str.UID___s__r_n
mov dword [ebp - 0x2fc], 0x64
call fcn.00523e38
add esp, 0x18
lea ecx, [ebp - 0x2fc]
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.00523e38
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 0x4019c9
xor eax, eax
jmp 0x4019e2
lea esi, [eax + eax]
mov eax, esi
call fcn.0052c650
mov eax, esp
push 3
push esi
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.004064d0
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 0x401a17
xor eax, eax
jmp 0x401a30
lea esi, [eax + eax]
mov eax, esi
call fcn.0052c650
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.004064d0
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.00401f30
push edi
lea edx, [ebp - 0x3e0]
push str.listen_port
push edx
mov byte [ebp - 4], 2
call fcn.00404650
add esp, 8
push eax
call fcn.00401c30
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x3e0]
call fcn.00402000
mov esi, 0x10
cmp dword [eax + 0x14], esi
jb 0x401a9e
mov eax, dword [eax]
push eax
push str.Listen_Port___s__r_n
call fcn.00523e38
add esp, 8
cmp dword [ebp - 0x38], esi
jb 0x401abd
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004302fd
add esp, 4
mov ecx, dword [ebp - 0x300]
mov edi, dword [ecx + 8]
add edi, 0x1cc
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], 1
call fcn.004015e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x334]
mov dword [ebp - method.CConfigInfo.virtual_0], vtable.CConfigInfo.0
call fcn.00406d80
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.005232d4
mov esp, ebp
pop ebp
ret 4