Function at 0x100a6be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x9a8
mov eax, dword [0x10119a70]
xor eax, esp
mov dword [esp + 0x9a4], eax
push ebx
push ebp
push esi
push edi
push 0xff
mov esi, ecx
mov ebx, dword [esi]
xor ebp, ebp
lea eax, [esp + 0xb5]
push ebp
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0xffffffff
mov byte [esp + 0xbc], 0
call fcn.100bba6c
mov edi, dword [ebx + 0x600]
mov dword [esp + 0x34], ebp
mov eax, dword [ebx + 0x600]
add esp, 0xc
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x18], ebp
cmp eax, ebp
je 0x100a6d85
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a6c57
sub eax, edx
cmp eax, 1
jbe 0x100a6d85
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a6c70
sub eax, edx
cmp eax, 0x16
jae 0x100a6c85
mov eax, 0x16
jmp 0x100a6c99
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100a6c90
sub eax, edx
inc eax
push 1
push eax
call dword [0x10119a14]
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x100a6cb8
mov eax, 0x1b
jmp 0x100a71b4
cmp byte [edi], 0x3a
mov ebx, dword [0x100cc3c0]
jne 0x100a6ddd
mov ebp, edi
test ebp, ebp
je 0x100a6d31
push 0x3a
push ebp
call ebx
mov edi, eax
add esp, 8
test edi, edi
je 0x100a6d31
mov ebp, dword [0x100cc458]
push 0xa
lea eax, [edi + 1]
push 0
push eax
call ebp
push eax
call fcn.10093ac0
movzx ecx, ax
push 0x2d
push edi
mov dword [esp + 0x3c], ecx
call ebx
add esp, 0x18
test eax, eax
je 0x100a6e17
push 0xa
inc eax
push 0
push eax
call ebp
push eax
call fcn.10093ac0
movzx eax, ax
add esp, 0x10
mov dword [esp + 0x20], eax
cmp word [esp + 0x24], ax
jbe 0x100a6d31
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x18]
cmp byte [edi], 0
je 0x100a6d85
mov ecx, dword [esi + 0x90]
mov edx, dword [esi + 0x54]
push 0x401
lea eax, [esp + 0x1b4]
push eax
mov eax, dword [edx + 0x18]
push edi
push ecx
push eax
call fcn.1000c030
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 4]
add esp, 4
push eax
push edx
call fcn.1000c030
add esp, 0x18
sub eax, 0
je 0x100a6e54
sub eax, 1
je 0x100a6dd3
sub eax, 1
je 0x100a6e4d
mov edx, dword [esi + 0x1a8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], pe_nt_image_headers32
call dword [0x100cd810]
test eax, eax
je 0x100a6e25
call dword [0x100cd828]
push eax
push esi
call fcn.100b15b0
push eax
mov eax, dword [esp + 0x20]
push str.getsockname___failed:__s
push eax
call fcn.10091a00
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x10119a08]
add esp, 0x18
mov eax, 0x1e
jmp 0x100a71b4
push 0x3a
push edi
call ebx
mov edx, dword [esp + 0x20]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x100a6e04
mov ecx, ebp
sub ecx, edi
push ecx
push edi
push edx
call dword [0x100cc484]
add esp, 0xc
jmp 0x100a6cc9
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100a6e08
jmp 0x100a6d31
movzx edx, word [esp + 0x24]
mov dword [esp + 0x20], edx
jmp 0x100a6d31
movzx ecx, word [esp + 0x30]
push 0x401
lea edx, [esp + 0x1b4]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.1009b930
add esp, 0x10
mov dword [esp + 0x2c], 0
lea edi, [esp + 0x1b0]
lea edx, [esp + 0x28]
push edx
push 0
push edi
push esi
call fcn.10090c00
add esp, 0x10
cmp eax, 1
jne 0x100a6e78
lea eax, [esp + 0x28]
push eax
push esi
call fcn.1008f260
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100a6e94
mov ecx, dword [esp + 0x14]
mov ebp, dword [eax]
push eax
push ecx
call fcn.10090dd0
add esp, 8
test ebp, ebp
jne 0x100a6ebc
mov edx, dword [esp + 0x14]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edx
call fcn.10091a00
mov eax, dword [esp + 0x24]
push eax
call dword [0x10119a08]
add esp, 0x10
mov eax, 0x1e
jmp 0x100a71b4
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x10119a08]
mov ebx, dword [0x100cd828]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
lea ebx, [ebx]
lea edx, [esp + 0x10]
push edx
push 0
push ebp
push esi
call fcn.10094f30
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x100a6f06
call ebx
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x100a6ee0
jmp 0x100a6f0a
test ebp, ebp
jne 0x100a6f2e
push edi
push esi
call fcn.100b15b0
push eax
mov eax, dword [esp + 0x20]
push str.socket_failure:__s
push eax
call fcn.10091a00
add esp, 0x14
mov eax, 0x1e
jmp 0x100a71b4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ecx
push edx
lea eax, [esp + 0x38]
push eax
call fcn.100bba66
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], ecx
movzx edi, ax
cmp ax, word [esp + 0x20]
ja 0x100a7071
mov ebx, dword [esp + 0x2c]
cmp word [esp + 0x30], 2
jne 0x100a6f74
push edi
call dword [0x100cd804]
mov word [esp + 0x32], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [0x100cd808]
test eax, eax
je 0x100a706a
call dword [0x100cd828]
test ebx, ebx
je 0x100a6fec
cmp eax, 0x2741
jne 0x100a6fec
push eax
push esi
call fcn.100b15b0
movzx edx, di
mov edi, dword [esp + 0x1c]
push eax
push edx
push str.bind_port_hu__on_non_local_address_failed:__s_n
push edi
call fcn.10091970
mov edx, dword [esi + 0x1a8]
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], pe_nt_image_headers32
call dword [0x100cd810]
test eax, eax
jne 0x100a7006
movzx edi, word [esp + 0x24]
xor ebx, ebx
jmp 0x100a6ff9
cmp eax, 0x2740
je 0x100a6ff8
cmp eax, 0xd
jne 0x100a7037
inc edi
cmp di, word [esp + 0x20]
jbe 0x100a6f60
jmp 0x100a7071
call dword [0x100cd828]
push eax
push esi
call fcn.100b15b0
push eax
push str.getsockname___failed:__s
push edi
call fcn.10091a00
mov eax, dword [esp + 0x24]
push eax
push esi
call fcn.10094eb0
add esp, 0x1c
mov eax, 0x1e
jmp 0x100a71b4
push eax
push esi
call fcn.100b15b0
mov edx, dword [esp + 0x1c]
push eax
movzx ecx, di
push ecx
push str.bind_port_hu__failed:__s
push edx
call fcn.10091a00
mov eax, dword [esp + 0x28]
push eax
push esi
call fcn.10094eb0
add esp, 0x20
mov eax, 0x1e
jmp 0x100a71b4
cmp di, word [esp + 0x20]
jbe 0x100a7098
mov ecx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push ecx
call fcn.10091a00
mov edx, dword [esp + 0x18]
push edx
push esi
call fcn.10094eb0
add esp, 0x10
mov eax, 0x1e
jmp 0x100a71b4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], pe_nt_image_headers32
call dword [0x100cd810]
test eax, eax
je 0x100a70ee
call dword [0x100cd828]
push eax
push esi
call fcn.100b15b0
push eax
push str.getsockname___failed:__s
mov eax, dword [esp + 0x24]
push eax
call fcn.10091a00
mov ecx, dword [esp + 0x24]
push ecx
push esi
call fcn.10094eb0
add esp, 0x1c
mov eax, 0x1e
jmp 0x100a71b4
mov edx, dword [esp + 0x10]
push 1
push edx
call dword [0x100cd7dc]
test eax, eax
je 0x100a7114
call dword [0x100cd828]
push eax
push esi
call fcn.100b15b0
push eax
push str.socket_failure:__s
jmp 0x100a70cc
push 0x100
lea edx, [esp + 0xb4]
push edx
push ebp
call fcn.10090840
mov ebp, dword [esp + 0x9c8]
add esp, 0xc
cmp ebp, 2
je 0x100a7183
mov ebx, dword [0x100cd80c]
mov cx, word [esp + 0x30]
cmp dword [esi + 0x2e8], 0
jne 0x100a714e
test ebp, ebp
je 0x100a717d
cmp ebp, 1
jne 0x100a7159
cmp cx, 2
jne 0x100a717d
movzx eax, cx
sub eax, 2
jne 0x100a717d
mov eax, dword [esp + 0x32]
push eax
call ebx
movzx edi, ax
test ebp, ebp
je 0x100a71cd
cmp ebp, 1
je 0x100a7237
mov cx, word [esp + 0x30]
inc ebp
cmp ebp, 2
jne 0x100a7141
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x610], ebp
call fcn.100a6780
mov eax, dword [esp + 0x10]
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x2cc], 1
mov eax, 0x1c
mov ecx, esi
call fcn.100a6ac0
mov eax, ebx
mov ecx, dword [esp + 0x9b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100bb8a6
add esp, 0x9a8
ret
xor eax, eax
cmp word [esp + 0x30], 2
movzx ecx, di
setne al
push ecx
lea edx, [esp + 0xb4]
push edx
lea edi, [esi + 0x598]
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
call fcn.100b5740
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x100a7187
push ebx
call fcn.100b0e90
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_EPRT_command:__s
push ecx
call fcn.10091a00
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.10094eb0
add esp, 0x18
mov dword [edi + 0x78], 1
xor eax, eax
jmp 0x100a71ab
lea ecx, [esp + 0x5b4]
lea edx, [esp + 0xb0]
mov al, byte [edx]
test al, al
je 0x100a725c
cmp al, 0x2e
jne 0x100a7254
mov byte [ecx], 0x2c
jmp 0x100a7256
mov byte [ecx], al
inc ecx
add edx, 1
jne 0x100a7245
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.10096e40
lea eax, [esp + 0x5c8]
push eax
push str.PORT
lea eax, [esi + 0x598]
push 0x100eab64
push eax
call fcn.100b5740
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x100a7187
push ebx
call fcn.100b0e90
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.10091a00
mov edx, dword [esp + 0x20]
push edx
push esi
call fcn.10094eb0
add esp, 0x18
xor eax, eax
jmp 0x100a71ab