Function at 0x41c554
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 0x10
call fcn.004c4d96
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
add ebx, 0xc
push ebx
push 0x10
call fcn.004c4d96
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x533160
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0x10
call fcn.004c4d96
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
mov ebx, dword [ebx]
add ebx, 8
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop ebx
add ebx, 4
push dword [ebp + 0xc]
xor eax, eax
call dword [sym.imp.WS2_32.dll_getsockname]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x41c643
push 0x23
push 0x40c48c9
push 6
call fcn.004c4d9c
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
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push ebx
push edi
push 1
mov eax, 2
call fcn.004c84e0
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 0x41c69a
mov eax, dword [edi]
add edi, 4
dec ecx
je 0x41c698
imul eax, dword [edi]
jmp 0x41c68d
mov ecx, eax
cmp ecx, 8
jle 0x41c6a4
mov ecx, 8
mov esi, ebx
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebx
add edi, 4
add ebx, 8
call fcn.004c4d90
add esp, 4
pop eax
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esp
mov ebx, dword [ebp - 0x10]
mov ax, word [ebx]
push eax
xor eax, eax
call dword [sym.imp.WS2_32.dll_ntohs]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x41c6f2
push 0x76
push 0x40c48c9
push 6
call fcn.004c4d9c
add esp, 0xc
mov dword [ebp - 0x18], eax
push 0x80000301
push 0
push 0xffff
push 0x80000301
push 0
push dword [ebp - 0x18]
push 2
mov ebx, 0xc4
call fcn.004caed0
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x619f84], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push str.OnPrepareListen
mov ecx, 2
call fcn.00402647
add esp, 8
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41c76f
push ebx
call fcn.004c4d90
add esp, 4
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x14]
push eax
push 1
mov eax, str.ITcpPackServer_OnPrepareListen
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407cbc
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41c7a4
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41c7b4
push ebx
call fcn.004c4d90
add esp, 4
cmp dword [0x619de0], 0
je 0x41c859
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x168
call fcn.004c8c40
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 1
push 1
push 1
lea eax, [ebp - 0x10]
push eax
push 1
mov eax, 0x533154
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, 0x4ee310
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041c888
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x41c829
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41c839
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x41c849
push ebx
call fcn.004c4d90
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x41c859
push ebx
call fcn.004c4d90
add esp, 4
mov eax, 0
jmp 0x41c863
push eax
mov ebx, dword [ebp - 8]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.004c4d90
add esp, 4
pop ebx
call fcn.004c4d90
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8