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

Disassembly:
sub esp, 0x628
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x624], eax
mov eax, dword [esp + 0x62c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
push 0x2e
xor edi, edi
lea edx, [esp + 0xc1]
push edi
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], 0xffffffff
mov byte [esp + 0xc8], 0
call sub.MSVCR100.dll_memset
mov esi, dword [ebx + 0x584]
add esp, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], 1
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x10032312
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10032118
sub eax, edx
cmp eax, 1
jbe 0x10032312
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10032130
sub eax, edx
cmp eax, 0x41
jae 0x10032145
mov eax, 0x41
jmp 0x10032159
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10032150
sub eax, edx
inc eax
push 1
push eax
call dword [0x100a3010]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1003217b
mov dword [esp + 0x28], 0x1b
jmp 0x1003272b
mov al, byte [esi]
mov ebp, dword [sym.imp.MSVCR100.dll_strchr]
cmp al, 0x5b
jne 0x1003222f
push 0x5d
push esi
lea ebx, [esi + 1]
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x100322b7
mov ecx, dword [esp + 0x10]
sub eax, ebx
push eax
push ebx
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
mov ebx, dword [esp + 0x40]
add esp, 0xc
test edi, edi
je 0x100322bb
push 0x3a
push edi
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x100322bb
mov edi, dword [sym.imp.MSVCR100.dll_strtoul]
push 0xa
lea edx, [esi + 1]
push 0
push edx
call edi
push eax
call fcn.1001c070
movzx eax, ax
push 0x2d
push esi
mov dword [esp + 0x38], eax
call ebp
add esp, 0x18
test eax, eax
je 0x100322ac
push 0xa
inc eax
push 0
push eax
call edi
push eax
call fcn.1001c070
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x14], eax
cmp word [esp + 0x20], ax
jbe 0x100322bb
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
jmp 0x100322bb
cmp al, 0x3a
jne 0x1003223a
mov edi, esi
jmp 0x100321b6
push 0x3a
push esi
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x10032295
lea edx, [esp + 0x3c]
push edx
push esi
push 0x17
call fcn.100525a0
add esp, 0xc
cmp eax, 1
jne 0x1003227c
mov edx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
mov eax, esi
sub edx, esi
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10032270
jmp 0x100322bb
mov ecx, dword [esp + 0x10]
mov eax, edi
sub eax, esi
push eax
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
jmp 0x100321b6
mov edx, dword [esp + 0x10]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100322a0
jmp 0x100322bb
movzx ecx, word [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x100322bb
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x10]
cmp byte [esi], 0
je 0x10032312
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x4ec]
mov ecx, dword [edi + 0x40]
push 0x401
lea edx, [esp + 0x234]
push edx
push esi
push eax
add ecx, 0x10
push ecx
call fcn.10052250
mov edx, dword [edi + 0x40]
add esp, 4
push eax
mov eax, dword [edx]
push eax
call fcn.10017d70
add esp, 0x18
sub eax, 0
je 0x100323b3
dec eax
je 0x1003272b
dec eax
je 0x100323ac
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x40]
mov dword [esp + 0x20], 0x80
mov ecx, dword [eax + 0x120]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10032366
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1000ec90
push eax
push str.getsockname___failed:__s
push ebx
call fcn.1001cb80
add esp, 0x18
jmp 0x1003272b
movzx eax, word [esp + 0x3c]
push 0x401
cmp eax, 0x17
je 0x10032385
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x48]
push edx
push eax
jmp 0x10032394
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0x17
call fcn.1004e100
add esp, 0x10
test eax, eax
je 0x1003272b
mov dword [esp + 0x30], 0
lea esi, [esp + 0x230]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push esi
push ebx
call fcn.100405a0
add esp, 0x14
cmp eax, 1
jne 0x100323d9
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.1001c470
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100323f1
mov edi, dword [eax]
push eax
push ebx
call fcn.100408d0
add esp, 8
test edi, edi
jne 0x10032405
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push ebx
call fcn.1001cb80
add esp, 0xc
jmp 0x1003272b
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor esi, esi
lea ecx, [ecx]
mov edx, dword [esp + 0x24]
movzx eax, byte [edx + 0x4f7]
lea ecx, [esp + 0x18]
push ecx
push eax
push 0
push edi
push ebx
call fcn.1004c010
add esp, 0x14
test eax, eax
je 0x1003243e
call ebp
mov edi, dword [edi + 0x1c]
mov esi, eax
test edi, edi
jne 0x10032410
jmp 0x10032442
test edi, edi
jne 0x10032469
push 0x100
lea ecx, [esp + 0x134]
push ecx
push esi
call fcn.1000ec90
push eax
push str.socket_failure:__s
push ebx
call fcn.1001cb80
add esp, 0x18
jmp 0x1003272b
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 0x18]
push edx
push eax
lea ecx, [esp + 0x44]
push ecx
call sub.MSVCR100.dll_memcpy
mov ebp, dword [esp + 0x2c]
mov edx, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], edx
movzx esi, bp
cmp bp, word [esp + 0x14]
ja 0x1003258f
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [esp + 0x18]
mov word [esp + 0x3e], ax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x10032588
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x30], 0
je 0x10032532
cmp eax, 0x2741
jne 0x10032532
push 0x100
lea eax, [esp + 0x134]
push eax
push 0x2741
call fcn.1000ec90
push eax
movzx ecx, si
push ecx
push str.bind_port_hu__on_non_local_address_failed:__s
push ebx
call fcn.1001ccc0
mov ecx, dword [esp + 0x40]
add esp, 0x1c
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0x80
mov edx, dword [ecx + 0x120]
push eax
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100325c3
movzx esi, bp
mov dword [esp + 0x30], eax
jmp 0x1003253f
cmp eax, 0x2740
je 0x1003253e
cmp eax, 0xd
jne 0x1003255d
inc esi
cmp si, word [esp + 0x14]
jbe 0x10032497
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.1001cb80
add esp, 8
jmp 0x1003272b
push 0x100
lea ecx, [esp + 0x134]
push ecx
push eax
call fcn.1000ec90
push eax
movzx edx, si
push edx
push str.bind_port_hu__failed:__s
push ebx
call fcn.1001cb80
add esp, 0x1c
jmp 0x1003272b
cmp si, word [esp + 0x14]
jbe 0x100325a2
push str.bind___failed__we_ran_out_of_ports
push ebx
call fcn.1001cb80
add esp, 8
jmp 0x1003272b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x28], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x100325d5
push 0x100
lea eax, [esp + 0x134]
push eax
jmp 0x10032346
mov ecx, dword [esp + 0x18]
push 1
push ecx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x10032613
push 0x100
lea edx, [esp + 0x134]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1000ec90
push eax
push str.socket_failure:__s
push ebx
call fcn.1001cb80
add esp, 0x18
jmp 0x1003272b
push 0x2f
lea eax, [esp + 0xc0]
push eax
push edi
call fcn.1003f6b0
mov ebp, dword [esp + 0x30]
add esp, 0xc
cmp dword [ebp + 0x220], 0
jne 0x10032646
cmp dword [ebp + 0x208], 0
je 0x10032646
mov dword [ebp + 0x220], 1
mov edi, dword [esp + 0x38]
cmp edi, 2
je 0x100326a6
mov cx, word [esp + 0x3c]
cmp dword [ebp + 0x220], 0
jne 0x10032661
test edi, edi
je 0x100326a0
cmp edi, 1
jne 0x1003266c
cmp cx, 2
jne 0x100326a0
movzx eax, cx
sub eax, 2
je 0x10032680
sub eax, 0x15
jne 0x100326a0
mov ecx, dword [esp + 0x3e]
push ecx
jmp 0x10032685
mov edx, dword [esp + 0x3e]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx esi, ax
test edi, edi
je 0x100326db
cmp edi, 1
je 0x1003277a
mov cx, word [esp + 0x3c]
inc edi
cmp edi, 2
jne 0x10032654
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
push ebx
mov dword [ebp + 0x498], edi
call fcn.1004da60
mov esi, eax
add esp, 0x10
mov dword [esp + 0x28], esi
test esi, esi
jne 0x1003272b
mov edx, dword [ebx + 0xc]
mov dword [esp + 0x18], 0xffffffff
mov byte [edx + 0x4a6], 0x1c
jmp 0x10032739
xor edx, edx
cmp word [esp + 0x3c], 2
movzx eax, si
push eax
setne dl
lea ecx, [esp + 0xc0]
push ecx
lea eax, [ebp + 0x408]
inc edx
push edx
push str.EPRT
push str._s__d_s_hu
push eax
push ebx
call fcn.10050c10
add esp, 0x1c
mov dword [esp + 0x28], eax
test eax, eax
je 0x100326a6
push eax
call fcn.1000e080
push eax
push str.Failure_sending_EPRT_command:__s
push ebx
call fcn.1001cb80
add esp, 0x10
mov eax, dword [ebx + 0xc]
mov esi, dword [esp + 0x28]
mov byte [eax + 0x4a6], 0
mov eax, dword [esp + 0x18]
cmp eax, 0xffffffff
je 0x10032751
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
call fcn.1004c0e0
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
call dword [0x100a3004]
mov ecx, dword [esp + 0x638]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005cc54
add esp, 0x628
ret
lea ecx, [esp + 0xec]
lea edx, [esp + 0xbc]
mov al, byte [edx]
test al, al
je 0x1003279d
cmp al, 0x2e
jne 0x10032797
mov byte [ecx], 0x2c
jmp 0x10032799
mov byte [ecx], al
inc ecx
inc edx
jne 0x10032788
movzx eax, si
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.10024650
lea eax, [esp + 0x100]
push eax
push str.PORT
push 0x10084d64
lea eax, [ebp + 0x408]
push eax
push ebx
call fcn.10050c10
add esp, 0x28
mov dword [esp + 0x28], eax
test eax, eax
je 0x100326a6
push eax
call fcn.1000e080
push eax
push str.Failure_sending_PORT_command:__s
jmp 0x10032722