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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x4f7f44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
xor ebx, ebx
push 0xff
lea edx, [ebp - 0x183]
push ebx
push edx
mov dword [ebp - 0xa24], eax
mov dword [ebp - 0xa1c], ecx
mov dword [ebp - 0xa10], esi
mov dword [ebp - 0xa0c], 0xffffffff
mov byte [ebp - 0x184], bl
call fcn.004a8b80
mov edi, dword [esi + 0x96c]
mov dword [ebp - 0xa2c], ebx
mov eax, dword [esi + 0x96c]
add esp, 0xc
mov dword [ebp - 0xa20], ebx
mov dword [ebp - 0xa18], ebx
mov dword [ebp - 0xa30], 1
cmp eax, ebx
je 0x483622
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4834b7
sub eax, edx
cmp eax, 1
jbe 0x483622
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4834d0
sub eax, edx
cmp eax, 0x41
jae 0x4834e5
mov eax, 0x41
jmp 0x4834f9
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4834f0
sub eax, edx
inc eax
push 1
push eax
call dword [0x4f7ce8]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x483520
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
mov al, byte [edi]
cmp al, 0x5b
jne 0x48369f
lea eax, [edi + 1]
push 0x5d
push edi
mov dword [ebp - 0xa28], eax
call fcn.004ac2e0
mov esi, eax
add esp, 8
test esi, esi
je 0x4835d1
mov eax, dword [ebp - 0xa28]
mov ecx, esi
sub ecx, eax
push ecx
push eax
push ebx
call fcn.004aa7a0
add esp, 0xc
test esi, esi
je 0x4835d1
push 0x3a
push esi
call fcn.004ac2e0
mov esi, eax
add esp, 8
test esi, esi
je 0x4835d1
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.004ad6d0
push eax
call fcn.0046f990
movzx edi, ax
push 0x2d
push esi
mov dword [ebp - 0xa20], edi
call fcn.004ac2e0
add esp, 0x18
test eax, eax
je 0x483715
push 0xa
inc eax
push 0
push eax
call fcn.004ad6d0
push eax
call fcn.0046f990
movzx eax, ax
add esp, 0x10
mov dword [ebp - 0xa18], eax
cmp di, ax
jbe 0x4835d1
xor eax, eax
mov dword [ebp - 0xa18], eax
mov dword [ebp - 0xa20], eax
cmp byte [ebx], 0
je 0x483622
mov esi, dword [ebp - 0xa24]
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x50]
push 0x401
lea eax, [ebp - 0x588]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ecx
push eax
call fcn.0049d1c0
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.0047bd40
add esp, 0x18
sub eax, 0
je 0x483723
dec eax
je 0x483689
dec eax
je 0x483764
mov esi, dword [ebp - 0xa24]
mov edx, dword [esi + 0x1b8]
lea eax, [ebp - 0xa14]
push eax
lea ecx, [ebp - 0xa08]
push ecx
push edx
mov dword [ebp - 0xa14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x483727
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0049b060
mov ecx, dword [ebp - 0xa10]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.0046f330
push ebx
call dword [0x4f7cdc]
add esp, 0x1c
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
cmp al, 0x3a
jne 0x4836aa
mov esi, edi
jmp 0x48355d
push 0x3a
push edi
call fcn.004ac2e0
mov esi, eax
add esp, 8
test esi, esi
je 0x483700
lea edx, [ebp - 0xa08]
push edx
push edi
push 0x17
call fcn.00499620
add esp, 0xc
cmp eax, 1
jne 0x4836f5
xor eax, eax
mov edx, ebx
mov dword [ebp - 0xa18], eax
mov dword [ebp - 0xa20], eax
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4836e6
jmp 0x4835d1
mov eax, esi
sub eax, edi
push eax
push edi
jmp 0x483554
mov edx, ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x483706
jmp 0x4835d1
movzx edx, di
mov dword [ebp - 0xa18], edx
jmp 0x4835d1
mov edi, ebx
jmp 0x48376a
movzx eax, word [ebp - 0xa08]
push 0x401
lea edx, [ebp - 0x588]
push edx
cmp eax, 0x17
je 0x483749
lea ecx, [ebp - 0xa04]
push ecx
push eax
jmp 0x483752
lea eax, [ebp - 0xa00]
push eax
push 0x17
call fcn.0049d5e0
add esp, 0x10
mov dword [ebp - 0xa30], 0
lea edi, [ebp - 0x588]
lea ecx, [ebp - 0xa2c]
push ecx
push 0
push 0
push edi
push esi
call fcn.00491ce0
add esp, 0x14
cmp eax, 1
jne 0x483794
lea edx, [ebp - 0xa2c]
push edx
push esi
call fcn.00471e40
add esp, 8
mov eax, dword [ebp - 0xa2c]
test eax, eax
je 0x4837b4
mov esi, dword [eax]
push eax
mov eax, dword [ebp - 0xa10]
push eax
call fcn.00491f00
add esp, 8
test esi, esi
jne 0x4837e6
mov ecx, dword [ebp - 0xa10]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ecx
call fcn.0046f330
push ebx
call dword [0x4f7cdc]
add esp, 0x10
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x4f7cdc]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
add esp, 4
mov dword [ebp - 0xa0c], 0xffffffff
xor ebx, ebx
mov eax, dword [ebp - 0xa24]
lea edx, [ebp - 0xa0c]
push edx
push 0
push esi
push eax
call fcn.00476cf0
add esp, 0x10
mov dword [ebp - 0xa28], eax
test eax, eax
je 0x483832
call edi
mov esi, dword [esi + 0x1c]
mov ebx, eax
test esi, esi
jne 0x483802
jmp 0x483836
test esi, esi
jne 0x483873
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push ebx
call fcn.0049b060
mov edx, dword [ebp - 0xa10]
push eax
push str.socket_failure:__s
push edx
call fcn.0046f330
add esp, 0x18
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea edx, [ebp - 0xa08]
push edx
call fcn.004a9120
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 0xa24]
mov dword [ebp - 0xa14], eax
mov eax, dword [ebp - 0xa20]
add esp, 0xc
movzx edi, ax
cmp ax, word [ebp - 0xa18]
ja 0x483a20
nop
push edi
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0xa14]
push ecx
lea edx, [ebp - 0xa08]
mov word [ebp - 0xa06], ax
mov eax, dword [ebp - 0xa0c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x483a17
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [ebp - 0xa30], 0
je 0x48395a
cmp eax, 0x2741
jne 0x48395a
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.0049b060
push eax
mov eax, dword [ebp - 0xa10]
movzx edx, di
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push eax
call fcn.0046f260
mov eax, dword [ebx + 0x1b8]
add esp, 0x1c
lea ecx, [ebp - 0xa14]
push ecx
lea edx, [ebp - 0xa08]
push edx
push eax
mov dword [ebp - 0xa14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x483979
movzx edi, word [ebp - 0xa20]
mov dword [ebp - 0xa30], eax
jmp 0x483967
cmp eax, 0x2740
je 0x483966
cmp eax, 0xd
jne 0x4839c9
inc edi
cmp di, word [ebp - 0xa18]
jbe 0x4838b0
jmp 0x483a20
push 0x80
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0049b060
mov edx, dword [ebp - 0xa10]
push eax
push str.getsockname___failed:__s
push edx
call fcn.0046f330
mov eax, dword [ebp - 0xa0c]
push eax
push ebx
call fcn.00476c70
add esp, 0x20
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.0049b060
push eax
mov eax, dword [ebp - 0xa10]
movzx edx, di
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.0046f330
mov ecx, dword [ebp - 0xa0c]
push ecx
push ebx
call fcn.00476c70
add esp, 0x24
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
cmp di, word [ebp - 0xa18]
jbe 0x483a57
mov edx, dword [ebp - 0xa10]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.0046f330
mov eax, dword [ebp - 0xa0c]
push eax
push ebx
call fcn.00476c70
add esp, 0x10
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xa0c]
lea ecx, [ebp - 0xa14]
push ecx
lea edx, [ebp - 0xa08]
push edx
push eax
mov dword [ebp - 0xa14], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x483979
mov ecx, dword [ebp - 0xa0c]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x483ae7
push 0x80
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0049b060
push eax
mov eax, dword [ebp - 0xa10]
push str.socket_failure:__s
push eax
call fcn.0046f330
mov ecx, dword [ebp - 0xa0c]
push ecx
push ebx
call fcn.00476c70
add esp, 0x20
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a79cb
mov esp, ebp
pop ebp
ret
push 0x100
lea edx, [ebp - 0x184]
push edx
push esi
call fcn.00491170
mov eax, dword [ebx + 0x2a4]
add esp, 0xc
test eax, 0x40000
jne 0x483b1b
test eax, 0x400
je 0x483b1b
or eax, 0x40000
mov dword [ebx + 0x2a4], eax
mov esi, dword [ebp - 0xa1c]
cmp esi, 2
je 0x483b8b
mov cx, word [ebp - 0xa08]
lea ecx, [ecx]
test dword [ebx + 0x2a4], 0x40000
jne 0x483b40
test esi, esi
je 0x483b85
cmp esi, 1
jne 0x483b4b
cmp cx, 2
jne 0x483b85
movzx eax, cx
sub eax, 2
je 0x483b61
sub eax, 0x15
jne 0x483b85
mov eax, dword [ebp - 0xa06]
push eax
jmp 0x483b68
mov ecx, dword [ebp - 0xa06]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
test esi, esi
je 0x483b96
cmp esi, 1
je 0x483c0f
mov cx, word [ebp - 0xa08]
inc esi
cmp esi, 2
jne 0x483b30
mov edi, dword [ebp - 0xa28]
jmp 0x483cad
xor ecx, ecx
cmp word [ebp - 0xa08], 2
movzx edx, di
setne cl
push edx
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0xa1c], esi
lea esi, [ebx + 0x4c0]
inc ecx
push ecx
push str.EPRT
push str._s__d_s_hu
push esi
call fcn.0049d8f0
mov edi, eax
add esp, 0x18
test edi, edi
je 0x483ca7
push edi
call fcn.0049a8f0
mov edx, dword [ebp - 0xa10]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.0046f330
mov eax, dword [ebp - 0xa0c]
push eax
push ebx
call fcn.00476c70
add esp, 0x18
mov dword [esi + 0x78], 1
xor eax, eax
jmp 0x483cd5
lea ecx, [ebp - 0x988]
lea edx, [ebp - 0x184]
jmp 0x483c20
mov al, byte [edx]
test al, al
je 0x483c35
cmp al, 0x2e
jne 0x483c2f
mov byte [ecx], 0x2c
jmp 0x483c31
mov byte [ecx], al
inc ecx
inc edx
jne 0x483c20
movzx eax, di
mov edx, eax
and edx, 0xff
push edx
shr eax, 8
push eax
push str.__d__d
push 0x14
push ecx
mov byte [ecx], 0
call fcn.00470380
lea eax, [ebp - 0x988]
push eax
push str.PORT
lea eax, [ebx + 0x4c0]
push 0x4d7ff8
push eax
call fcn.0049d8f0
mov edi, eax
add esp, 0x24
test edi, edi
je 0x483cad
push edi
call fcn.0049a8f0
mov ecx, dword [ebp - 0xa10]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.0046f330
mov edx, dword [ebp - 0xa0c]
push edx
push ebx
call fcn.00476c70
add esp, 0x18
xor eax, eax
jmp 0x483cd5
mov esi, dword [ebp - 0xa1c]
mov dword [ebx + 0x538], esi
mov esi, ebx
call fcn.00482f70
mov eax, dword [ebp - 0xa0c]
mov dword [ebx + 0x1bc], eax
mov dword [ebx + 0x2a0], 1
mov eax, 0x1c
mov ecx, ebx
call fcn.004832e0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a79cb
mov esp, ebp
pop ebp
ret