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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x100ab06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0xa14], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
mov dword [ebp - 0xa2c], eax
lea eax, [ebp - 0x184]
mov edi, dword [esi]
push 0
push eax
mov dword [ebp - 0xa18], edi
call fcn.10060f70
mov ebx, dword [edi + 0x95c]
xor ecx, ecx
mov dword [ebp - 0xa0c], ecx
add esp, 0xc
mov dword [ebp - 0xa34], ecx
mov dword [ebp - 0xa20], ecx
mov dword [ebp - 0xa24], ecx
mov dword [ebp - 0xa1c], ecx
mov ecx, dword [edi + 0x95c]
mov byte [ebp - 0xa0d], 1
test ecx, ecx
je 0x1004e0f9
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004df01
sub ecx, edx
cmp ecx, 1
jbe 0x1004e0f9
mov edx, ebx
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1004df18
sub edx, ecx
push 0x16
pop ecx
cmp edx, ecx
jb 0x1004df36
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004df2d
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x100ab0a0]
mov dword [ebp - 0xa1c], eax
pop ecx
pop ecx
test eax, eax
jne 0x1004df55
push 0x1b
jmp 0x1004e66e
cmp byte [ebx], 0x3a
jne 0x1004df5e
mov ecx, ebx
jmp 0x1004dfa1
push 0x3a
push ebx
call fcn.10060400
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0xa30], ecx
test ecx, ecx
je 0x1004df8f
sub ecx, ebx
push ecx
push ebx
mov ebx, dword [ebp - 0xa1c]
push ebx
call fcn.100723b0
mov ecx, dword [ebp - 0xa30]
add esp, 0xc
jmp 0x1004dfa7
mov edx, dword [ebp - 0xa1c]
sub edx, ebx
mov al, byte [ebx]
mov byte [edx + ebx], al
inc ebx
test al, al
jne 0x1004df97
mov ebx, dword [ebp - 0xa1c]
test ecx, ecx
je 0x1004e014
push 0x3a
push ecx
call fcn.10060400
mov dword [ebp - 0xa30], eax
pop ecx
pop ecx
test eax, eax
je 0x1004e014
push 0xa
lea ecx, [eax + 1]
push 0
push ecx
call fcn.10067293
push eax
call fcn.10031564
push 0x2d
push dword [ebp - 0xa30]
movzx eax, ax
mov dword [ebp - 0xa20], eax
call fcn.10060400
add esp, 0x18
test eax, eax
je 0x1004e005
push 0xa
inc eax
push 0
push eax
call fcn.10067293
push eax
call fcn.10031564
add esp, 0x10
jmp 0x1004e00b
mov eax, dword [ebp - 0xa20]
movzx ecx, ax
mov dword [ebp - 0xa24], ecx
mov edx, dword [ebp - 0xa24]
xor ecx, ecx
cmp word [ebp - 0xa20], dx
mov edi, dword [ebp - 0xa20]
movzx eax, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp di, word [ebp - 0xa24]
mov edx, eax
mov edi, dword [ebp - 0xa18]
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp - 0xa20]
movzx eax, ax
cmovbe ecx, eax
cmp byte [ebx], 0
movzx eax, cx
mov dword [ebp - 0xa30], eax
je 0x1004e0d6
push 0x401
lea eax, [ebp - 0x588]
push eax
mov eax, dword [esi + 0x50]
push ebx
push dword [esi + 0x8c]
push dword [eax + 0x18]
call sym.QingFeng_r.dll_DllCanUnloadNow
pop ecx
push eax
mov eax, dword [esi + 0x50]
push dword [eax + 4]
call sym.QingFeng_r.dll_DllCanUnloadNow
add esp, 0x18
sub eax, 0
je 0x1004e0b2
sub eax, 1
je 0x1004e66c
sub eax, 1
jne 0x1004e0b6
lea ecx, [ebp - 0x588]
mov dword [ebp - 0xa0c], ecx
jmp 0x1004e0bc
mov ecx, ebx
jmp 0x1004e0aa
mov ecx, dword [ebp - 0xa0c]
mov eax, dword [ebp - 0xa30]
movzx eax, ax
mov dword [ebp - 0xa20], eax
mov eax, dword [ebp - 0xa38]
movzx eax, ax
jmp 0x1004e0e9
movzx eax, ax
xor ecx, ecx
mov dword [ebp - 0xa20], eax
mov eax, edx
mov dword [ebp - 0xa0c], ecx
mov dword [ebp - 0xa24], eax
test ecx, ecx
jne 0x1004e190
jmp 0x1004e0ff
mov ebx, dword [ebp - 0xa1c]
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa28], 0x80
push eax
lea eax, [ebp - 0xa08]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004e15a
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10053277
push eax
push str.getsockname___failed:__s
push edi
call fcn.1002f5e0
push ebx
call dword [0x100ab094]
add esp, 0x1c
jmp 0x1004e66c
push 0x401
lea eax, [ebp - 0x588]
push eax
lea eax, [ebp - 0xa04]
push eax
movzx eax, word [ebp - 0xa08]
push eax
call fcn.1003d87d
lea ecx, [ebp - 0x588]
mov byte [ebp - 0xa0d], 0
add esp, 0x10
mov dword [ebp - 0xa0c], ecx
lea eax, [ebp - 0xa34]
push eax
push 0
push ecx
push esi
call fcn.100278df
add esp, 0x10
cmp eax, 1
jne 0x1004e1b7
lea eax, [ebp - 0xa34]
push eax
push esi
call fcn.10026df8
pop ecx
pop ecx
mov eax, dword [ebp - 0xa34]
test eax, eax
je 0x1004e1ce
mov ebx, dword [eax]
push eax
push edi
call fcn.10027add
pop ecx
pop ecx
jmp 0x1004e1d0
xor ebx, ebx
test ebx, ebx
jne 0x1004e1f8
mov eax, dword [ebp - 0xa0c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.1002f5e0
mov eax, dword [ebp - 0xa1c]
push eax
call dword [0x100ab094]
jmp 0x1004e669
mov eax, dword [ebp - 0xa1c]
push eax
call dword [0x100ab094]
or dword [ebp - 0xa14], 0xffffffff
and dword [ebp - 0xa0c], 0
pop ecx
lea eax, [ebp - 0xa14]
push eax
push 0
push ebx
push esi
call fcn.100307b1
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1004e242
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0xa0c], eax
test ebx, ebx
jne 0x1004e214
jmp 0x1004e248
mov eax, dword [ebp - 0xa0c]
test ebx, ebx
jne 0x1004e277
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.10053277
push eax
push str.socket_failure:__s
push dword [ebp - 0xa18]
call fcn.1002f5e0
add esp, 0x18
jmp 0x1004e66c
push dword [ebx + 0x10]
lea eax, [ebp - 0xa08]
push dword [ebx + 0x18]
push eax
call fcn.10060530
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov edx, dword [ebp - 0xa20]
mov ecx, dword [ebp - 0xa24]
cmp dx, cx
mov dword [ebp - 0xa28], eax
movzx eax, dx
mov dword [ebp - 0xa0c], eax
ja 0x1004e64d
push 2
pop ecx
cmp word [ebp - 0xa08], cx
jne 0x1004e2cd
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xa06], ax
push dword [ebp - 0xa28]
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0xa14]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1004e40f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0xa0d], 0
je 0x1004e370
mov ecx, 0x2741
cmp eax, ecx
jne 0x1004e370
push 0x80
lea eax, [ebp - 0x84]
push eax
push ecx
call fcn.10053277
push eax
mov eax, dword [ebp - 0xa0c]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0xa18]
call fcn.1002f6b6
add esp, 0x1c
mov dword [ebp - 0xa28], 0x80
lea eax, [ebp - 0xa28]
push eax
lea eax, [ebp - 0xa08]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1004e391
mov eax, dword [ebp - 0xa20]
movzx eax, ax
mov byte [ebp - 0xa0d], 0
jmp 0x1004e383
cmp eax, 0x2740
je 0x1004e37c
cmp eax, 0xd
jne 0x1004e3ce
mov eax, dword [ebp - 0xa0c]
inc eax
mov ecx, dword [ebp - 0xa24]
cmp ax, cx
jmp 0x1004e2a7
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10053277
push eax
push str.getsockname___failed:__s
push dword [ebp - 0xa18]
call fcn.1002f5e0
push dword [ebp - 0xa14]
push esi
call fcn.1002ff4b
add esp, 0x20
jmp 0x1004e66c
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.10053277
push eax
mov eax, dword [ebp - 0xa0c]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0xa18]
call fcn.1002f5e0
push dword [ebp - 0xa14]
push esi
call fcn.1002ff4b
add esp, 0x24
jmp 0x1004e66c
mov eax, dword [ebp - 0xa0c]
mov ecx, dword [ebp - 0xa24]
cmp ax, cx
ja 0x1004e64d
lea eax, [ebp - 0xa28]
mov dword [ebp - 0xa28], 0x80
push eax
lea eax, [ebp - 0xa08]
push eax
push dword [ebp - 0xa14]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1004e391
push 1
push dword [ebp - 0xa14]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1004e485
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.10053277
push eax
push str.socket_failure:__s
jmp 0x1004e3af
push 0x100
lea eax, [ebp - 0x184]
push eax
push ebx
call fcn.100278b3
mov edx, dword [ebp - 0xa2c]
add esp, 0xc
push 2
pop ebx
cmp edx, ebx
je 0x1004e506
mov cx, word [ebp - 0xa08]
test dword [esi + 0x284], 0x40000
jne 0x1004e4be
test edx, edx
je 0x1004e4fb
cmp edx, 1
jne 0x1004e4c8
cmp cx, bx
jne 0x1004e4fb
movzx eax, cx
sub eax, ebx
jne 0x1004e4fb
push dword [ebp - 0xa06]
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0xa2c]
movzx ebx, ax
test edx, edx
je 0x1004e5d2
cmp edx, 1
je 0x1004e538
mov cx, word [ebp - 0xa08]
push 2
pop ebx
inc edx
mov dword [ebp - 0xa2c], edx
cmp edx, ebx
jne 0x1004e4ae
lea ebx, [esi + 0x4a8]
push esi
mov dword [ebx + 0x6c], edx
call fcn.1004bfff
mov eax, dword [ebp - 0xa14]
mov dword [esi + 0x1ac], eax
mov byte [esi + 0x283], 1
pop ecx
mov dword [esi + 0x520], 0x1c
jmp 0x1004e63e
lea edx, [ebp - 0x988]
lea edi, [ebp - 0x184]
mov cl, byte [edi]
test cl, cl
je 0x1004e569
cmp cl, 0x2e
movzx eax, cl
mov dword [ebp - 0xa38], 0x2c
cmove eax, dword [ebp - 0xa38]
mov byte [edx], al
inc edx
add edi, 1
jne 0x1004e544
mov ecx, ebx
mov byte [edx], 0
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
call fcn.1003b923
lea eax, [ebp - 0x988]
push eax
push str.PORT
push 0x10092c98
lea ebx, [esi + 0x4a8]
push ebx
call fcn.10057a95
mov edi, eax
add esp, 0x24
test edi, edi
je 0x1004e642
push edi
call fcn.1005335d
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0xa18]
call fcn.1002f5e0
push dword [ebp - 0xa14]
push esi
call fcn.1002ff4b
jmp 0x1004e634
push ebx
lea eax, [ebp - 0x184]
push eax
push 2
pop ecx
xor eax, eax
lea ebx, [esi + 0x4a8]
cmp word [ebp - 0xa08], cx
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
call fcn.10057a95
mov edi, eax
add esp, 0x18
test edi, edi
je 0x1004e642
push edi
call fcn.1005335d
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0xa18]
call fcn.1002f5e0
push dword [ebp - 0xa14]
push esi
call fcn.1002ff4b
mov dword [ebx + 0x6c], 1
add esp, 0x18
and dword [esi + 0x520], 0
mov eax, edi
jmp 0x1004e66f
mov edx, dword [ebp - 0xa2c]
jmp 0x1004e50c
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0xa18]
call fcn.1002f5e0
push dword [ebp - 0xa14]
push esi
call fcn.1002ff4b
add esp, 0x10
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ecda
mov esp, ebp
pop ebp
ret