Function at 0x140065580
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
xor eax, eax
lea rdi, [0x14021b240]
mov ecx, 0xa
rep stosd dword [rdi], eax
lea rcx, [0x14021b240]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edx, edx
lea rcx, [0x14021b268]
mov r8d, 0xf8
call fcn.14014e180
xor edx, edx
lea rcx, [0x14021b360]
mov r8d, 0x208
call fcn.14014e180
xor edx, edx
lea rcx, [0x14021b568]
mov r8d, 0x208
call fcn.14014e180
xor ebx, ebx
mov dword [0x14021b798], 0x288
lea rax, [0x1401b7658]
mov dword [0x14021b770], ebx
mov qword [0x14021b778], rax
lea rcx, [0x14021b818]
mov qword [0x14021b7a0], rax
xor edx, edx
lea rax, [0x1401b7658]
mov qword [0x14021b788], rbx
mov qword [0x14021b7c8], rax
mov r8d, 0x30c
lea rax, [0x1401b7658]
mov qword [0x14021b790], rbx
mov qword [0x14021b7f0], rax
mov dword [0x14021b79c], 0x40
mov qword [0x14021b7b0], rbx
mov qword [0x14021b7b8], rbx
mov dword [0x14021b7c0], 0x288
mov dword [0x14021b7c4], 0x40
mov qword [0x14021b7d8], rbx
mov qword [0x14021b7e0], rbx
mov dword [0x14021b7e8], 0xa8
mov dword [0x14021b7ec], 0x20
mov qword [0x14021b800], rbx
mov qword [0x14021b808], rbx
mov dword [0x14021b810], 0x84
mov dword [0x14021b814], 8
call fcn.14014e180
xor edx, edx
lea rcx, [0x14021bb24]
mov r8d, 0x100
call fcn.14014e180
xorps xmm1, xmm1
mov qword [0x14021bcf8], rbx
xorps xmm0, xmm0
mov qword [0x14021bd00], rbx
lea rax, [0x1401b7658]
mov dword [0x14021bd08], 0x8c8
mov qword [0x14021bce8], rax
lea rax, [0x1401b7658]
mov qword [0x14021bd18], rax
lea rax, [0x1401b7790]
mov qword [0x14021bd48], rax
movups xmmword [0x14021bc24], xmm0
mov dword [0x14021bd0c], 0x20
movups xmmword [0x14021bc34], xmm0
mov byte [0x14021bd10], bl
movups xmmword [0x14021bc44], xmm0
mov qword [0x14021bd28], rbx
movups xmmword [0x14021bc54], xmm0
mov qword [0x14021bd30], rbx
movups xmmword [0x14021bc64], xmm1
mov dword [0x14021bd38], 0x190
movups xmmword [0x14021bc74], xmm1
mov dword [0x14021bd3c], 8
movups xmmword [0x14021bc84], xmm1
mov qword [0x14021bd40], rbx
movups xmmword [0x14021bc94], xmm1
movups xmmword [0x14021bca4], xmm1
movups xmmword [0x14021bcb4], xmm1
movups xmmword [0x14021bcc4], xmm1
movups xmmword [0x14021bcd4], xmm1
lea rax, [rbp + 0x170]
movdqa xmmword [0x14021bd50], xmm0
mov word [0x14021bd60], bx
lea rdx, str.SOFTWAREMetaQuotes_Software
mov qword [0x14021bd68], rbx
mov r9d, 0x20119
mov qword [0x14021bd70], rbx
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov byte [0x14021bd78], bl
mov qword [rbp + 0x170], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14006587e
lea rax, [rbp + 0x170]
mov qword [rbp + 0x170], rbx
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14006587e
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x170]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMetaQuotes_Software
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14006588b
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x170]
mov qword [rbp + 0x170], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140065933
lea rax, [rbp + 0x170]
mov qword [rbp + 0x170], rbx
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140065933
mov qword [rsp + 0x40], rbx
lea rax, [rbp + 0x170]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMetaQuotes_Software
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140065940
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [rbp + 0x170], 0x1fe
mov dword [rsp + 0x50], eax
lea rdx, str.SOFTWAREMetaQuotes_Software
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x178], ebx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400659ec
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x178]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Proxy.Type
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x180]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1400659ec
lea rcx, [rsp + 0x50]
call fcn.14003e338
mov dword [0x14021b818], eax
cmp eax, 3
jbe 0x1400659ec
mov dword [0x14021b818], ebx
xor eax, eax
mov dword [rbp + 0x170], 0xfe
mov dword [0x14021b81c], eax
lea rdx, str.SOFTWAREMetaQuotes_Software
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x178], ebx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rsi, [0x14021b81c]
test eax, eax
jne 0x140065a81
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x178]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x1401b94f8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x180]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140065a88
mov word [0x14021b81c], bx
xor eax, eax
mov dword [rbp + 0x170], 0x7e
mov dword [0x14021b91c], eax
lea rdx, str.SOFTWAREMetaQuotes_Software
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x178], ebx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140065b1d
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x178]
lea rax, [0x14021b91c]
xor r8d, r8d
lea rdx, str.Proxy.Login
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x180]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140065b24
mov word [0x14021b91c], bx
xor eax, eax
mov dword [rbp + 0x170], 0x7e
mov dword [0x14021b99c], eax
lea rdx, str.SOFTWAREMetaQuotes_Software
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x178], ebx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140065bb9
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x178]
lea rax, [0x14021b99c]
xor r8d, r8d
lea rdx, str.Proxy.Password
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x180]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x140065bc0
mov word [0x14021b99c], bx
cmp word [0x14021b81c], bx
jne 0x140065d09
xor eax, eax
mov dword [rbp + 0x170], 0x1fe
mov dword [rsp + 0x50], eax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x178], ebx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140065d09
mov rcx, qword [rbp + 0x180]
lea rax, [rbp + 0x170]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x178]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.ProxyServer
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x180]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140065d09
lea rdx, str.https
lea rcx, [rsp + 0x50]
call fcn.140030c6c
test rax, rax
jne 0x140065c92
lea rdx, str.http
lea rcx, [rsp + 0x50]
call fcn.140030c6c
test rax, rax
je 0x140065d09
lea rdx, [0x1401b95f4]
mov rcx, rax
call fcn.140030c6c
mov rdi, 0xffffffffffffffff
mov edx, 0x80
mov r9, rdi
mov rcx, rsi
lea r8, [rax + 2]
call fcn.14003c5c8
lea rdx, [0x1401b80e4]
mov rcx, rsi
call fcn.140030c6c
test rax, rax
je 0x140065cd3
mov word [rax], bx
inc rdi
cmp word [rsi + rdi*2], bx
jne 0x140065cd3
cmp rdi, 3
jbe 0x140065d02
lea rdx, [0x1401b7670]
mov rcx, rsi
call fcn.140030c6c
test rax, rax
je 0x140065d02
mov dword [0x14021b818], 3
jmp 0x140065d09
mov word [0x14021b81c], bx
call fcn.140060800
mov rbx, qword [rsp + 0x288]
lea rax, [0x14021b240]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret