Function at 0x403373
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push str.authchoice
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x403610
push 0x18
mov ebx, dword [sym.imp.MSVCRT20.dll_malloc]
mov dword [ebp - 0x10], 1
call ebx
mov dword [eax], edi
add esp, 4
mov dword [eax + 4], edi
mov esi, eax
mov dword [eax + 8], edi
mov eax, dword [esi + 0xc]
and al, 0xfe
mov dword [esi + 0xc], eax
and al, 0xfd
mov dword [esi + 0xc], eax
and al, 0xf7
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], eax
and al, 0xfb
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [ecx], edi
jne 0x4033e8
mov eax, dword [ecx + 8]
mov dword [ebp - 0xc], ecx
mov dword [eax], esi
jmp 0x403430
push 0xc
call ebx
add esp, 4
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 4], edx
mov ebx, dword [edx + 8]
mov dword [eax + 8], ebx
mov eax, dword [edx]
mov ecx, dword [esi + 0xc]
mov edx, dword [eax + 0xc]
shl edx, 0x1d
sar edx, 0x1d
xor edx, ecx
and edx, 4
xor edx, ecx
mov dword [esi + 0xc], edx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ecx], esi
cmp dword [edi], 0
je 0x4035af
lea ebx, [edi + 4]
cmp dword [ebx], 0
je 0x4035af
push str.source_addrtype
push dword [ebx - 4]
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x4034ff
test byte [esi + 0xc], 4
je 0x403489
push str.Cannot_test_source_addrtype_because_test_already_made
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
add esp, 4
mov eax, dword [ebx]
push str.ipv4
push eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x4034b0
mov dword [esi + 4], 2
jmp 0x4034f2
push 0x41e228
push dword [ebp - 8]
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x4034cd
mov dword [esi + 4], 2
jmp 0x4034f2
push str.unrecognised_address_type
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
mov dword [esi + 4], 0xffffffff
add esp, 4
mov eax, dword [esi + 0xc]
or al, 2
mov dword [esi + 0xc], eax
or al, 4
mov dword [esi + 0xc], eax
push str.source_addr
push dword [ebx - 4]
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x403552
mov dword [ebp - 4], 1
test byte [esi + 0xc], 4
jne 0x40353e
push str.source_addrtype_must_preceed_source_addr
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
add esp, 4
push dword [ebx]
push dword [esi + 4]
call fcn.0040327f
add esp, 8
mov dword [esi + 8], eax
or byte [esi + 0xc], 8
push str.source_port
push dword [ebx - 4]
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x40357e
push dword [ebx]
mov dword [ebp - 4], 1
call dword [sym.imp.MSVCRT20.dll_atoi]
add esp, 4
mov dword [esi], eax
or byte [esi + 0xc], 1
cmp dword [ebp - 4], 0
jne 0x4035a2
push str.attribute_not_recognised
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
add esp, 4
add ebx, 8
cmp dword [ebx - 4], 0
jne 0x403444
push dword [ebp - 0xc]
push dword [0x41b050]
call fcn.00407934
add esp, 8
mov ecx, dword [ebp - 0xc]
cmp dword [ebp + 8], ecx
je 0x403613
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov eax, dword [ebx + 0x14]
inc eax
mov dword [ebx + 0x14], eax
shl eax, 3
push eax
push dword [ebx + 0x10]
call dword [sym.imp.MSVCRT20.dll_realloc]
add esp, 8
mov dword [ebx + 0x10], eax
mov edx, dword [ebx + 0x14]
lea eax, [eax + edx*8 - 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
lea eax, [ecx + edx*8 - 8]
mov dword [eax], 1
mov dword [eax + 4], esi
jmp 0x403613
mov edi, dword [ebp + 0x10]
push str.select
push dword [ebp + 0xc]
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x40374f
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x40377a
mov dword [ebp - 0x10], 1
mov eax, dword [esi + 0x14]
inc eax
mov dword [esi + 0x14], eax
shl eax, 3
push eax
push dword [esi + 0x10]
call dword [sym.imp.MSVCRT20.dll_realloc]
add esp, 8
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x14]
lea eax, [eax + ecx*8 - 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
lea esi, [edx + ecx*8 - 8]
mov dword [esi], 2
cmp dword [edi], 0
je 0x40374f
add edi, 4
cmp dword [edi], 0
je 0x40374f
push str.mechanism
push dword [edi - 4]
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x40371e
mov ebx, dword [edi]
push str.chap
mov dword [ebp - 4], 1
push ebx
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x4036c8
mov eax, 3
jmp 0x40371b
push str.cleartext
push ebx
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
jne 0x4036e1
mov eax, 2
jmp 0x40371b
push str.anonymous
push ebx
call sub.MSVCRT20.dll_strcmp
add esp, 8
test eax, eax
mov eax, 0
je 0x40371b
push str.unrecognised_authentication_type
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
add esp, 4
mov eax, 0xffffffff
mov byte [esi + 4], al
cmp dword [ebp - 4], 0
jne 0x403742
push str.attribute_not_recognised
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
add esp, 4
add edi, 8
cmp dword [edi - 4], 0
jne 0x403689
cmp dword [ebp - 0x10], 0
jne 0x403773
push str.tag_not_recognised
push str.PARSE_ERROR:__s_n
call dword [sym.imp.MSVCRT20.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCRT20.dll_exit]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Cant_select_without_an_authchoice
jmp 0x40375a