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

Disassembly:
sub esp, 0x9a8
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x9a4], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
xor ebx, ebx
push 0xff
lea eax, [esp + 0xb1]
push ebx
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0xb8], bl
call sub.MSVCR80.dll_memset
mov edi, dword [ebp + 0x3c0]
mov dword [esp + 0x2c], ebx
mov eax, dword [ebp + 0x3c0]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 1
je 0x454528
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4543e0
sub eax, edx
cmp eax, 1
jbe 0x454528
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x454400
sub eax, edx
cmp eax, 0x10
jae 0x454417
mov eax, 0x10
jmp 0x45442b
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x454420
sub eax, edx
add eax, 1
push 1
push eax
call dword [0x54a0f0]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x45445b
pop edi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
cmp byte [edi], 0x3a
jne 0x454593
mov ebp, edi
test ebp, ebp
je 0x4544d8
push 0x3a
push ebp
call dword [sym.imp.MSVCR80.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x4544d8
mov ebp, dword [sym.imp.MSVCR80.dll_strtoul]
push 0xa
lea edx, [edi + 1]
push 0
push edx
call ebp
push eax
call fcn.00444520
movzx eax, ax
push 0x2d
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 0x18
test eax, eax
je 0x4545d1
push 0xa
add eax, 1
push 0
push eax
call ebp
push eax
call fcn.00444520
movzx eax, ax
add esp, 0x10
cmp word [esp + 0x18], ax
mov dword [esp + 0x1c], eax
jbe 0x4544d8
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
cmp byte [ebx], 0
je 0x454528
mov eax, dword [esi + 0x88]
mov ecx, dword [esi + 0x4c]
push 0x401
lea edx, [esp + 0x1b0]
push edx
mov edx, dword [ecx + 0x18]
push ebx
push eax
push edx
call fcn.00461110
add esp, 4
push eax
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 4]
push ecx
call fcn.00461110
add esp, 0x18
sub eax, 0
je 0x4545df
sub eax, 1
je 0x454576
sub eax, 1
je 0x45460b
mov ecx, dword [esi + 0x168]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x4545e3
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push esi
call fcn.004335e0
mov edx, dword [esp + 0x18]
push eax
push str.getsockname___failed:__s
push edx
call fcn.0043fab0
push ebx
call dword [0x54a0e4]
add esp, 0x18
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
push 0x3a
push edi
call dword [sym.imp.MSVCR80.dll_strchr]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4545ba
mov ecx, ebp
sub ecx, edi
push ecx
push edi
push ebx
call dword [sym.imp.MSVCR80.dll_strncpy]
add esp, 0xc
jmp 0x454466
mov edx, ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4545c0
jmp 0x4544d8
movzx ecx, word [esp + 0x18]
mov dword [esp + 0x1c], ecx
jmp 0x4544d8
mov edi, ebx
jmp 0x454612
movzx edx, word [esp + 0x2c]
push 0x401
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.004494e0
add esp, 0x10
mov dword [esp + 0x24], 0
lea edi, [esp + 0x1ac]
lea eax, [esp + 0x20]
push eax
push 0
push edi
push esi
call fcn.00435980
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x45463f
mov ecx, dword [esp + 0x10]
mov ebp, dword [eax]
push eax
push ecx
call fcn.00435e40
add esp, 8
test ebp, ebp
jne 0x454676
mov edx, dword [esp + 0x10]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edx
call fcn.0043fab0
push ebx
call dword [0x54a0e4]
add esp, 0x10
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
push ebx
call dword [0x54a0e4]
mov ebx, dword [sym.imp.WSOCK32.dll_WSAGetLastError]
add esp, 4
mov dword [esp + 0xc], 0xffffffff
xor edi, edi
lea eax, [esp + 0xc]
push eax
push 0
push ebp
push esi
call fcn.00442730
add esp, 0x10
test eax, eax
mov dword [esp + 0x28], eax
je 0x4546b6
call ebx
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
mov edi, eax
jne 0x454690
jmp 0x4546ba
test ebp, ebp
jne 0x4546f1
push edi
push esi
call fcn.004335e0
mov ecx, dword [esp + 0x18]
push eax
push str.socket_failure:__s
push ecx
call fcn.0043fab0
add esp, 0x14
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push edx
push eax
lea ecx, [esp + 0x34]
push ecx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x24]
mov edx, dword [ebp + 0x10]
add esp, 0xc
cmp ax, word [esp + 0x1c]
mov dword [esp + 0x14], edx
movzx edi, ax
ja 0x45485f
mov ebx, dword [esp + 0x24]
cmp word [esp + 0x2c], 2
jne 0x454737
push edi
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x2e], ax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
je 0x454858
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
je 0x4547af
cmp eax, 0x2741
jne 0x4547af
push eax
push esi
call fcn.004335e0
push eax
movzx eax, di
mov edi, dword [esp + 0x1c]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push edi
call fcn.0043fa20
mov eax, dword [esi + 0x168]
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x4547ce
movzx edi, word [esp + 0x18]
xor ebx, ebx
jmp 0x4547be
cmp eax, 0x2740
je 0x4547bb
cmp eax, 0xd
jne 0x454812
add edi, 1
cmp di, word [esp + 0x1c]
jbe 0x454723
jmp 0x45485f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push esi
call fcn.004335e0
push eax
push str.getsockname___failed:__s
push edi
call fcn.0043fab0
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.004426d0
add esp, 0x1c
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
push eax
push esi
call fcn.004335e0
push eax
mov eax, dword [esp + 0x1c]
movzx edx, di
push edx
push str.bind_port_hu__failed:__s
push eax
call fcn.0043fab0
mov ecx, dword [esp + 0x24]
push ecx
push esi
call fcn.004426d0
add esp, 0x20
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
cmp di, word [esp + 0x1c]
jbe 0x454899
mov edx, dword [esp + 0x10]
push str.bind___failed__we_ran_out_of_ports_
push edx
call fcn.0043fab0
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.004426d0
add esp, 0x10
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0x80
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x454902
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push esi
call fcn.004335e0
push eax
push str.getsockname___failed:__s
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043fab0
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.004426d0
add esp, 0x1c
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x9a4]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
mov eax, dword [esp + 0xc]
push 1
push eax
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x454928
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push esi
call fcn.004335e0
push eax
push str.socket_failure:__s
jmp 0x4548cd
push pe_nt_image_headers32
lea eax, [esp + 0xb0]
push eax
push ebp
call fcn.00435670
mov ebp, dword [esp + 0x9c4]
add esp, 0xc
cmp ebp, 2
je 0x45499d
mov ebx, dword [sym.imp.WSOCK32.dll_ntohs]
mov cx, word [esp + 0x2c]
cmp dword [esi + 0x27c], 0
jne 0x454962
test ebp, ebp
je 0x454995
cmp ebp, 1
jne 0x45496d
cmp cx, 2
jne 0x454995
movzx eax, cx
sub eax, 2
jne 0x454995
mov ecx, dword [esp + 0x2e]
push ecx
call ebx
test ebp, ebp
movzx edi, ax
je 0x454a08
cmp ebp, 1
je 0x454a80
mov cx, word [esp + 0x2c]
add ebp, 1
cmp ebp, 2
jne 0x454955
mov ebx, dword [esp + 0x28]
mov dword [esi + 0x4c0], ebp
mov eax, dword [esi + 0x16c]
cmp eax, 0xffffffff
je 0x4549c6
push eax
push esi
call fcn.004426d0
add esp, 8
mov dword [esi + 0x16c], 0xffffffff
mov eax, dword [esp + 0xc]
mov dword [esi + 0x518], 0
mov dword [esi + 0x16c], eax
mov dword [esi + 0x260], 1
mov dword [esi + 0x4cc], 0x1c
mov ecx, dword [esp + 0x9b0]
pop edi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0042b7d2
add esp, 0x9a8
ret
xor ecx, ecx
cmp word [esp + 0x2c], 2
movzx edx, di
setne cl
push edx
lea eax, [esp + 0xb0]
push eax
lea edi, [esi + 0x458]
add ecx, 1
push ecx
push str.EPRT
push str._s__d_s_hu
push edi
call fcn.00462b80
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4549a1
push ebx
call fcn.00432c00
mov edx, dword [esp + 0x14]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.0043fab0
mov eax, dword [esp + 0x1c]
push eax
push esi
call fcn.004426d0
mov dword [edi + 0x68], 1
add esp, 0x18
mov dword [esi + 0x4cc], 0
jmp 0x4549ee
lea ecx, [esp + 0x5b0]
lea edx, [esp + 0xac]
mov edi, edi
mov al, byte [edx]
test al, al
je 0x454aa9
cmp al, 0x2e
jne 0x454a9f
mov byte [ecx], 0x2c
jmp 0x454aa1
mov byte [ecx], al
add ecx, 1
add edx, 1
jne 0x454a90
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.00443970
lea eax, [esp + 0x5c4]
push eax
push str.PORT
lea eax, [esi + 0x458]
push str._s__s
push eax
call fcn.00462b80
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x4549a1
push ebx
call fcn.00432c00
mov ecx, dword [esp + 0x14]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.0043fab0
mov edx, dword [esp + 0x1c]
push edx
push esi
call fcn.004426d0
add esp, 0x18
mov dword [esi + 0x4cc], 0
jmp 0x4549ee