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

Disassembly:
sub esp, 0x620
mov eax, dword [0x7d3574]
xor eax, esp
mov dword [esp + 0x61c], eax
mov eax, dword [esp + 0x628]
push ebx
push ebp
mov ebp, dword [esp + 0x62c]
mov ecx, dword [ebp + 0xc]
push esi
push edi
xor ebx, ebx
push 0x2e
lea edx, [esp + 0xb9]
push ebx
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xc0], bl
call fcn.004d4a00
mov esi, dword [ebp + 0x598]
add esp, 0xc
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], 1
cmp esi, ebx
je 0x43fd69
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43fc20
sub eax, edx
cmp eax, 1
jbe 0x43fd69
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43fc37
sub eax, edx
cmp eax, 0x41
jae 0x43fc4c
mov eax, 0x41
jmp 0x43fc5a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43fc51
sub eax, edx
inc eax
push 1
push eax
call dword [0x7d0030]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x43fc75
lea eax, [ebx + 0x1b]
jmp 0x44036f
mov al, byte [esi]
cmp al, 0x5b
jne 0x43fdcd
lea eax, [esi + 1]
push 0x5d
push esi
mov dword [esp + 0x30], eax
call fcn.004d0b30
mov edi, eax
add esp, 8
test edi, edi
je 0x43fd19
mov eax, dword [esp + 0x28]
mov ecx, edi
sub ecx, eax
push ecx
push eax
push ebx
call fcn.004d1720
add esp, 0xc
test edi, edi
je 0x43fd19
push 0x3a
push edi
call fcn.004d0b30
mov esi, eax
add esp, 8
test esi, esi
je 0x43fd19
push 0xa
lea ecx, [esi + 1]
push 0
push ecx
call fcn.004d587d
push eax
call fcn.00427980
movzx edi, ax
push 0x2d
push esi
mov dword [esp + 0x34], edi
call fcn.004d0b30
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x43fe3f
push 0xa
inc eax
push esi
push eax
call fcn.004d587d
push eax
call fcn.00427980
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x14], eax
cmp di, ax
jbe 0x43fd19
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
cmp byte [ebx], 0
je 0x43fd69
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x46c]
mov edx, dword [esi + 0x48]
push 0x401
lea eax, [esp + 0x22c]
push eax
mov eax, dword [edx + 0x18]
push ebx
push ecx
push eax
call fcn.0045e7b0
mov ecx, dword [esi + 0x48]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.0045e840
add esp, 0x18
sub eax, 0
je 0x43fe4b
dec eax
je 0x43fdc3
dec eax
je 0x43fe8d
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], 0x80
mov eax, dword [edx + 0x130]
push ecx
push eax
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x43fe4f
push 0x100
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00419b30
push eax
push str.getsockname___failed:__s
push ebp
call fcn.0042cb90
push ebx
call dword [0x7d0024]
add esp, 0x1c
mov eax, 0x1e
jmp 0x44036f
cmp al, 0x3a
jne 0x43fdd8
mov edi, esi
jmp 0x43fcae
push 0x3a
push esi
call fcn.004d0b30
mov edi, eax
add esp, 8
test edi, edi
je 0x43fe2a
lea edx, [esp + 0x34]
push edx
push esi
push 0x17
call fcn.0045e760
add esp, 0xc
cmp eax, 1
jne 0x43fe1f
xor eax, eax
mov edx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43fe10
jmp 0x43fd19
mov eax, edi
sub eax, esi
push eax
push esi
jmp 0x43fca5
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43fe30
jmp 0x43fd19
movzx edx, di
mov dword [esp + 0x14], edx
jmp 0x43fd19
mov esi, ebx
jmp 0x43fe94
movzx eax, word [esp + 0x34]
push 0x401
lea edx, [esp + 0x22c]
push edx
cmp eax, 0x17
je 0x43fe6e
lea ecx, [esp + 0x40]
push ecx
push eax
jmp 0x43fe75
lea eax, [esp + 0x44]
push eax
push 0x17
call fcn.0045ebe0
add esp, 0x10
test eax, eax
je 0x43fdc3
mov dword [esp + 0x30], 0
lea esi, [esp + 0x228]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push esi
push ebp
call fcn.0044ea90
add esp, 0x14
cmp eax, 1
jne 0x43feba
lea edx, [esp + 0x2c]
push edx
push ebp
call fcn.00427f90
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43fed2
mov edi, dword [eax]
push eax
push ebp
call fcn.0044ed90
add esp, 8
test edi, edi
jne 0x43fef2
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebp
call fcn.0042cb90
push ebx
call dword [0x7d0024]
add esp, 0x10
mov eax, 0x1e
jmp 0x44036f
push ebx
call dword [0x7d0024]
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
lea esp, [esp]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push ebp
call fcn.0042f1c0
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x43ff36
call ebx
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x43ff10
jmp 0x43ff3a
test edi, edi
jne 0x43ff66
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push esi
call fcn.00419b30
push eax
push str.socket_failure:__s
push ebp
call fcn.0042cb90
add esp, 0x18
mov eax, 0x1e
jmp 0x44036f
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.004d3550
mov eax, dword [esp + 0x28]
mov edx, dword [edi + 0x10]
mov ebx, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x18], edx
movzx esi, ax
cmp ax, word [esp + 0x14]
ja 0x4400cb
push esi
call dword [sym.imp.WSOCK32.dll_htons]
mov edx, dword [esp + 0x10]
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x4400c4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp dword [esp + 0x30], 0
je 0x44002d
cmp eax, 0x2741
jne 0x44002d
push 0x100
lea eax, [esp + 0x12c]
push eax
push 0x2741
call fcn.00419b30
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s
push ebp
call fcn.0042cb10
add esp, 0x1c
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], 0x80
mov ecx, dword [ebx + 0x130]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x44004a
movzx esi, word [esp + 0x1c]
mov dword [esp + 0x30], eax
jmp 0x44003a
cmp eax, 0x2740
je 0x440039
cmp eax, 0xd
jne 0x440088
inc esi
cmp si, word [esp + 0x14]
jbe 0x43ff98
jmp 0x4400cb
push 0x100
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00419b30
push eax
push str.getsockname___failed:__s
push ebp
call fcn.0042cb90
mov eax, dword [esp + 0x28]
push eax
push ebx
push ebp
call fcn.0042f140
add esp, 0x24
mov eax, 0x1e
jmp 0x44036f
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push eax
call fcn.00419b30
push eax
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push ebp
call fcn.0042cb90
mov eax, dword [esp + 0x2c]
push eax
push ebx
push ebp
call fcn.0042f140
add esp, 0x28
mov eax, 0x1e
jmp 0x44036f
cmp si, word [esp + 0x14]
jbe 0x4400ef
push str.bind___failed__we_ran_out_of_ports
push ebp
call fcn.0042cb90
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push ebp
call fcn.0042f140
add esp, 0x14
mov eax, 0x1e
jmp 0x44036f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x44004a
mov ecx, dword [esp + 0x10]
push 1
push ecx
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x440163
push 0x100
lea edx, [esp + 0x12c]
push edx
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.00419b30
push eax
push str.socket_failure:__s
push ebp
call fcn.0042cb90
mov eax, dword [esp + 0x28]
push eax
push ebx
push ebp
call fcn.0042f140
add esp, 0x24
mov eax, 0x1e
jmp 0x44036f
push 0x2f
lea ecx, [esp + 0xb8]
push ecx
push edi
call fcn.0044dbb0
add esp, 0xc
cmp dword [ebx + 0x2b0], 0
jne 0x440192
cmp dword [ebx + 0x294], 0
je 0x440192
mov dword [ebx + 0x2b0], 1
mov esi, dword [esp + 0x20]
cmp esi, 2
je 0x4401f2
mov cx, word [esp + 0x34]
cmp dword [ebx + 0x2b0], 0
jne 0x4401ad
test esi, esi
je 0x4401ec
cmp esi, 1
jne 0x4401b8
cmp cx, 2
jne 0x4401ec
movzx eax, cx
sub eax, 2
je 0x4401cc
sub eax, 0x15
jne 0x4401ec
mov edx, dword [esp + 0x36]
push edx
jmp 0x4401d1
mov eax, dword [esp + 0x36]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx edi, ax
test esi, esi
je 0x4401fb
cmp esi, 1
je 0x440279
mov cx, word [esp + 0x34]
inc esi
cmp esi, 2
jne 0x4401a0
mov edi, dword [esp + 0x28]
jmp 0x440318
xor eax, eax
cmp word [esp + 0x34], 2
movzx ecx, di
setne al
push ecx
lea edx, [esp + 0xb8]
push edx
mov dword [esp + 0x28], esi
lea esi, [ebx + 0x380]
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push esi
push ebp
call fcn.0045f790
mov edi, eax
add esp, 0x1c
test edi, edi
je 0x440314
push edi
call fcn.00418e50
push eax
push str.Failure_sending_EPRT_command:__s
push ebp
call fcn.0042cb90
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push ebp
call fcn.0042f140
mov dword [esi + 0x88], 1
mov edx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [edx + 0x414], 0
jmp 0x44036d
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xb4]
mov al, byte [edx]
test al, al
je 0x44029c
cmp al, 0x2e
jne 0x440296
mov byte [ecx], 0x2c
jmp 0x440298
mov byte [ecx], al
inc ecx
inc edx
jne 0x440287
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.004313c0
lea eax, [esp + 0xf8]
push eax
push str.PORT
push str._s__s
lea eax, [ebx + 0x380]
push eax
push ebp
call fcn.0045f790
mov edi, eax
add esp, 0x28
test edi, edi
je 0x440318
push edi
call fcn.00418e50
push eax
push str.Failure_sending_PORT_command:__s
push ebp
call fcn.0042cb90
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push ebp
call fcn.0042f140
mov edx, dword [ebp + 0xc]
add esp, 0x1c
mov dword [edx + 0x414], 0
jmp 0x44036d
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x408], esi
mov eax, dword [ebx + 0x134]
cmp eax, 0xffffffff
je 0x44033e
push eax
push ebx
push ebp
call fcn.0042f140
add esp, 0xc
mov dword [ebx + 0x134], 0xffffffff
xor eax, eax
mov dword [ebx + 0x258], eax
mov dword [ebx + 0x260], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x134], eax
mov dword [ebx + 0x258], 1
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x414], 0x1c
mov eax, edi
mov ecx, dword [esp + 0x62c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d482d
add esp, 0x620
ret