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

Disassembly:
sub esp, 0x224
mov eax, dword [0x51501c]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, dword [esi]
movzx ebx, word [ebp + 0x140]
mov ecx, dword [ebp + 0x144]
push edi
mov edi, dword [ebp + 0x344]
xor eax, eax
push 0xff
push eax
lea edx, [esp + 0x131]
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x134], al
call fcn.004c7adc
add esp, 0xc
test edi, edi
jne 0x42f3df
test bx, bx
je 0x42f626
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004c7adc
add esp, 0xc
test edi, edi
je 0x42f5d7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42f400
sub eax, edx
cmp eax, 0xff
jae 0x42f5d7
cmp dword [esp + 0x23c], 2
mov ecx, dword [esi + 0x20c]
mov dword [esp + 0x20], ecx
jne 0x42f434
mov dword [esi + 0x20c], 1
lea edx, [esp + 0x18]
push edx
push 0
push edi
push esi
call fcn.0042a5e0
add esp, 0x10
cmp eax, 1
jne 0x42f459
lea eax, [esp + 0x18]
push eax
mov ebx, esi
call fcn.00432070
add esp, 4
mov ebx, dword [esp + 0x18]
test ebx, ebx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x20c], ecx
je 0x42f5c5
mov ecx, dword [ebx]
push 0x100
lea esi, [esp + 0x12c]
call fcn.0042a3f0
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x240]
add esp, 4
push eax
mov ecx, esi
push ecx
push edx
push edi
push 0x4f04f0
mov esi, ebp
call fcn.0042de00
add esp, 0x14
mov edi, ebx
call fcn.0042a7a0
mov esi, 2
cmp dword [esp + 0x23c], esi
jne 0x42f4f1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x12c]
push ecx
call fcn.00448ea0
add esp, 8
test eax, eax
jle 0x42f4f1
mov edx, dword [esp + 0x1c]
push edx
mov word [esp + 0x2c], si
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x238]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x42f56b
mov eax, dword [esp + 0x24]
sub eax, 1
test eax, eax
mov dword [esp + 0x24], eax
jle 0x42f62a
movzx edx, bx
push edx
push 0x4f0574
mov esi, ebp
call fcn.0042de00
add esp, 8
add ebx, 1
cmp word [esp + 0x28], 2
jne 0x42f552
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
mov esi, dword [esp + 0x10]
jl 0x42f515
push 0x80
lea edx, [esp + 0xac]
push 0
push edx
mov dword [esp + 0x2c], 0x80
call fcn.004c7adc
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xac]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x42f605
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
mov dword [ebp + 0x855c], edi
call fcn.004482a0
add esp, 4
push eax
push edi
push 0x4f0538
jmp 0x42f648
push edi
push str._Q2IQ
mov esi, ebp
call fcn.0042dec0
add esp, 8
jmp 0x42f652
cmp dword [esp + 0x23c], 2
jne 0x42f4f9
push ebx
mov word [esp + 0x2c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x42f4f9
movzx edx, bx
push edx
push 0x4f0560
mov esi, ebp
call fcn.0042de00
mov eax, dword [esp + 0x18]
add esp, 8
mov dword [eax + 0x1ec], 1
xor eax, eax
jmp 0x42f657
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push esi
mov dword [ebp + 0x855c], edi
call fcn.004482a0
add esp, 4
push eax
push edi
push 0x4f05a0
mov esi, ebp
call fcn.0042dec0
add esp, 0xc
mov eax, 0x2d
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459ea4
add esp, 0x224
ret