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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9b4
mov eax, dword [0x51501c]
xor eax, esp
mov dword [esp + 0x9b0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
xor edi, edi
push 0xff
lea edx, [esp + 0xb5]
lea ecx, [eax + 0x3c8]
push edi
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], esi
mov byte [esp + 0xbc], 0
call fcn.004c7adc
mov esi, dword [esi + 0x354]
add esp, 0xc
cmp esi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edi
je 0x44265b
mov eax, esi
lea edx, [eax + 1]
jmp 0x442520
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x442520
sub eax, edx
cmp eax, 1
jbe 0x44265b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x442540
sub eax, edx
cmp eax, 0x16
jae 0x442557
mov eax, 0x16
jmp 0x44256b
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x442560
sub eax, edx
add eax, 1
push 1
push eax
call dword [0x515354]
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
jne 0x44259c
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x3a
mov ebx, dword [sym.imp.MSVCR80.dll_strchr]
jne 0x44261b
mov edi, esi
test edi, edi
je 0x442605
push 0x3a
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x442605
mov edi, dword [sym.imp.MSVCR80.dll_strtoul]
push 0xa
lea edx, [esi + 1]
push 0
push edx
call edi
add esp, 0xc
movzx eax, ax
push 0x2d
push esi
mov dword [esp + 0x24], eax
call ebx
add esp, 8
test eax, eax
je 0x442650
push 0xa
xor esi, esi
add eax, 1
push esi
push eax
call edi
movzx eax, ax
add esp, 0xc
cmp word [esp + 0x1c], ax
mov dword [esp + 0x18], eax
jbe 0x442605
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0xc]
cmp byte [edx], 0
mov edi, edx
je 0x44265b
mov ebx, dword [esp + 0x10]
mov eax, edx
jmp 0x442702
push 0x3a
push esi
call ebx
mov ecx, dword [esp + 0x14]
mov edi, eax
add esp, 8
test edi, edi
je 0x442640
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
jmp 0x4425a9
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
add esi, 1
test al, al
jne 0x442642
jmp 0x442605
movzx ecx, word [esp + 0x1c]
mov dword [esp + 0x18], ecx
jmp 0x442605
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx + 0x128]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4426cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
call fcn.004482a0
mov esi, dword [esp + 0x24]
add esp, 4
push eax
push 0x4f3144
call fcn.0042dec0
add esp, 8
test edi, edi
je 0x4426b1
push edi
call dword [0x515348]
add esp, 4
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
movzx eax, word [esp + 0x30]
sub eax, 2
je 0x4426e2
push 0x273f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4426fb
lea eax, [esp + 0x34]
push 0x401
push eax
lea esi, [esp + 0x5b8]
call fcn.00447ab0
add esp, 8
lea eax, [esp + 0x5b0]
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
push ebx
call fcn.0042a5e0
add esp, 0x10
cmp eax, 1
jne 0x442725
lea edx, [esp + 0x28]
push edx
call fcn.00432070
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x442740
mov esi, dword [esp + 0x20]
mov ebx, dword [eax]
mov edi, eax
call fcn.0042a7a0
mov edi, dword [esp + 0xc]
jmp 0x442742
xor ebx, ebx
test edi, edi
je 0x442750
push edi
call dword [0x515348]
add esp, 4
test ebx, ebx
jne 0x44277d
mov esi, dword [esp + 0x20]
push 0x4f3160
call fcn.0042dec0
add esp, 4
lea eax, [ebx + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, ebx
cmp dword [edi + 8], 0
jne 0x442795
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x6c]
mov dword [edi + 8], ecx
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0xc], ebx
jne 0x4427f2
call esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x442785
mov edx, dword [esp + 0x10]
push edx
call fcn.004482a0
mov esi, dword [esp + 0x24]
add esp, 4
push eax
push 0x4f3188
call fcn.0042dec0
add esp, 8
lea eax, [edi + 0x1e]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x18]
push eax
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004c7ae8
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp ax, word [esp + 0x18]
movzx esi, ax
ja 0x442967
mov ebx, dword [esp + 0x20]
cmp word [esp + 0x30], 2
jne 0x442838
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x32], ax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x44295c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2741
jne 0x4428b1
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004482a0
add esp, 4
movzx edx, si
push eax
push edx
push 0x4f319c
mov esi, ebx
call fcn.0042dec0
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx + 0x128]
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4428d0
movzx esi, word [esp + 0x1c]
jmp 0x4428c0
cmp eax, 0x2740
je 0x4428bd
cmp eax, 0xd
jne 0x442916
add esi, 1
cmp si, word [esp + 0x18]
jbe 0x442824
jmp 0x442963
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004482a0
add esp, 4
push eax
push 0x4f3144
call fcn.0042dec0
mov edx, dword [esp + 0x14]
add esp, 8
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004482a0
add esp, 4
movzx edx, si
push eax
push edx
push 0x4f319c
mov esi, ebx
call fcn.0042dec0
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
cmp si, word [esp + 0x18]
jbe 0x442999
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
push 0x4f31b8
call fcn.0042dec0
add esp, 4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4429d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004482a0
mov esi, ebx
jmp 0x4428e0
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4429fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004482a0
add esp, 4
push eax
push 0x4f3188
mov esi, ebx
jmp 0x4428e9
mov eax, dword [edi + 4]
sub eax, 2
jne 0x442a21
mov edi, dword [edi + 0x18]
add edi, 4
push 0x100
push edi
lea esi, [esp + 0xb8]
call fcn.00447ab0
add esp, 8
mov esi, dword [ebp + 0xc]
cmp esi, 2
je 0x442b52
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x30]
jmp 0x442a40
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x1d4], 0
jne 0x442a51
test esi, esi
je 0x442a7c
cmp esi, 1
jne 0x442a5c
cmp cx, 2
jne 0x442a7c
movzx eax, cx
sub eax, 2
jne 0x442a7c
mov ecx, dword [esp + 0x32]
push ecx
call ebx
test esi, esi
movzx edi, ax
je 0x442a89
cmp esi, 1
je 0x442adb
mov cx, word [esp + 0x30]
add esi, 1
cmp esi, 2
jne 0x442a40
jmp 0x442b52
xor ecx, ecx
cmp word [esp + 0x30], 2
movzx edx, di
mov edi, dword [esp + 0x2c]
setne cl
push edx
lea eax, [esp + 0xb4]
push eax
add ecx, 1
push ecx
push 0x4ddbdc
push 0x4f31dc
call fcn.0044b070
add esp, 0x14
test eax, eax
mov dword [esp + 0x24], eax
je 0x442b52
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x1b0]
lea edx, [esp + 0xb0]
lea esp, [esp]
mov al, byte [edx]
test al, al
je 0x442b09
cmp al, 0x2e
jne 0x442aff
mov byte [ecx], 0x2c
jmp 0x442b01
mov byte [ecx], al
add ecx, 1
add edx, 1
jne 0x442af0
movzx eax, di
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push 0x4f31ec
push 0x14
push ecx
mov byte [ecx], 0
call fcn.00435df0
mov edi, dword [esp + 0x40]
add esp, 0x14
lea eax, [esp + 0x1b0]
push eax
push str.GJ_b_
push 0x4f31f4
call fcn.0044b070
add esp, 0xc
test eax, eax
mov dword [esp + 0x24], eax
jne 0x442b8d
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov dword [ecx + 0x64], esi
mov eax, dword [edi + 0x12c]
cmp eax, 0xffffffff
je 0x442b6f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [esp + 0xc]
mov dword [edi + 0x12c], edx
mov dword [edi + 0x1b4], 1
mov dword [edi + 0x438], 0x1c
mov ecx, dword [esp + 0x9bc]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00459ea4
mov esp, ebp
pop ebp
ret