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

Disassembly:
sub esp, 0x28
push edi
mov edi, dword [0x642eec]
test edi, edi
je 0x54847c
mov eax, dword [esp + 0x30]
cmp dword [edi + 0x200], eax
je 0x5481bd
mov edi, dword [edi + 0x208]
test edi, edi
jne 0x5481a6
pop edi
add esp, 0x28
ret
mov eax, dword [esp + 0x34]
push ebx
shr eax, 0x10
test ax, ax
push ebp
push esi
je 0x54821a
mov esi, dword [edi + 0x1ac]
movzx eax, ax
mov dword [edi + 0x1e8], eax
mov eax, dword [0x63fb90]
test eax, eax
je 0x5481f6
push 1
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.00547140
add esp, 0x10
push esi
push edi
call fcn.00547000
add esp, 8
test eax, eax
je 0x548479
pop esi
pop ebp
pop ebx
mov dword [edi + 0x1e8], 0
pop edi
add esp, 0x28
ret
push 0
call fcn.005cce76
add esp, 4
mov dword [edi + 0x1e4], eax
call fcn.00546dd0
mov esi, eax
test esi, esi
jne 0x54825c
mov eax, dword [0x63fb90]
test eax, eax
je 0x548479
push 4
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.00547140
add esp, 0x10
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret
push 0
mov dword [esi + 0x1b0], 2
call fcn.005cce76
mov dword [esi + 0x1e0], eax
mov dword [esi + 0x1e4], eax
mov ecx, dword [edi + 0x204]
add esp, 4
lea edx, [esp + 0x10]
mov dword [esi + 0x204], ecx
push edx
mov ebp, 0x10
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], ebp
mov ecx, dword [edi + 0x200]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_accept]
cmp eax, 0xffffffff
mov dword [esi + 0x200], eax
jne 0x548321
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebx, dword [edi + 0x1ac]
mov dword [edi + 0x1e8], eax
mov eax, dword [0x63fb90]
test eax, eax
mov ebp, dword [esi + 0x1ac]
je 0x5482e6
push 2
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.00547140
add esp, 0x10
push ebx
push edi
call fcn.00547000
add esp, 8
test eax, eax
je 0x5482fe
mov dword [edi + 0x1e8], 0
push ebp
push esi
call fcn.00547000
add esp, 8
test eax, eax
je 0x548479
push esi
call fcn.00546f20
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret
mov eax, dword [edi + 0x200]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.WSOCK32.dll_ntohs]
je 0x548376
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x548376
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [edi + 0x12e]
push 0x64
push eax
call fcn.00423900
mov ecx, dword [esp + 0x26]
add esp, 0xc
push ecx
call ebx
mov word [edi + 0x192], ax
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, eax
movzx eax, ax
movzx edx, al
push edx
shr eax, 8
shr ecx, 0x10
movzx eax, al
push eax
movzx edx, cl
shr ecx, 8
movzx eax, cl
push edx
push eax
lea ecx, [esi + 0xc8]
push 0x5e7824
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x42]
add esp, 0x18
push edx
call ebx
mov word [esi + 0x12c], ax
mov eax, dword [0x63fb90]
test eax, eax
je 0x5483f7
mov ebp, dword [esi + 0x1ac]
push 0
push 0x3c
push edi
push str.SOCKLISTEN
call fcn.00547140
push ebp
push esi
call fcn.00547000
add esp, 0x18
test eax, eax
je 0x548479
mov ebp, 0x10
cmp byte [esi], 0
je 0x548310
mov eax, dword [esi + 0x200]
push eax
call fcn.0058be80
mov ecx, dword [0x645324]
mov edx, dword [esi + 0x200]
add esp, 4
push 0x23
push 0x8038
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x200]
cmp eax, 0xffffffff
je 0x548479
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], ebp
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x548479
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esi + 0x12e]
push 0x64
push ecx
call fcn.00423900
mov edx, dword [esp + 0x26]
add esp, 0xc
push edx
call ebx
mov word [esi + 0x192], ax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret