Function at 0x417410
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get common file path
Start tcp server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x430271
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x43c3f4]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push edi
mov eax, dword [0x43c3f4]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
push 6
push 1
push 2
mov dword [esi + 4], 0x9809
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x417624
xor eax, eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov eax, 2
push str.127.0.0.1
mov word [esp + 0x20], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [esi + 4]
mov edi, dword [sym.imp.WS2_32.dll_htons]
push ecx
mov dword [esp + 0x24], eax
call edi
mov ebx, dword [sym.imp.WS2_32.dll_bind]
push 0x10
lea edx, [esp + 0x20]
mov word [esp + 0x22], ax
mov eax, dword [esi]
push edx
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4174fb
mov eax, dword [esi + 4]
cmp eax, 0x980d
ja 0x417624
inc eax
movzx ecx, ax
push ecx
mov dword [esi + 4], eax
call edi
push 0x1f4
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi]
push 0x10
lea edx, [esp + 0x20]
push edx
push eax
call ebx
cmp eax, 0xffffffff
je 0x4174c2
mov edx, dword [0x43d174]
mov eax, dword [edx + 0xc]
mov ecx, 0x43d174
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x258], 0
mov ecx, dword [esi + 4]
push ecx
push 0x436c5c
lea edi, [esp + 0x20]
call fcn.004152c0
add esp, 8
push 0x104
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x40]
call fcn.0040d440
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.hioffice.ini
mov byte [esp + 0x260], 1
call fcn.0040d580
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x258], 2
call fcn.0040d510
mov byte [esp + 0x258], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4175a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
push ecx
push edi
push str.port
push str.socket
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [esp + 0x258], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4175ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x258], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi]
push bind
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x417650
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00419bd7
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
xor edx, edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
mov word [esp + 0x30], dx
mov edx, dword [esi]
push ecx
push edx
xor edi, edi
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41769b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x417650
push 8
call fcn.0041a222
add esp, 4
cmp eax, edi
je 0x4176b4
mov dword [eax + 4], edi
mov dword [eax], 0xffffffff
mov edi, eax
push 0
push 0
push edi
push 0x4176d0
push 0
push 0
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
jmp 0x417650