Function at 0x403650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f66eb
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x5365f0]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, esp
push eax
lea eax, [esp + 0x860]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push ebx
mov dword [esp + 0x34], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
push str.D5460976_987D_4418_AA5E_BD3497AD2DC7FWA_PROXY_SETTINGS
push SysReAllocString
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40399c
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.ProxyEnabled
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 4
call edi
test eax, eax
jne 0x40371f
cmp dword [esp + 0x18], 1
sete dl
mov byte [esi], dl
push 0x7fe
lea ecx, [esp + 0x5a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x60], ax
call fcn.004da450
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
push str.Address
push ecx
mov dword [esp + 0x2c], 0x800
call edi
test eax, eax
jne 0x403781
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403764
mov esi, dword [esp + 0x20]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
call fcn.004027c0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.Port
mov esi, 4
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x4037b4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov dword [eax], edx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push ebx
push str.AuthRequired
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x4037e6
cmp dword [esp + 0x18], 1
mov edx, dword [esp + 0x28]
sete cl
mov byte [edx], cl
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push str.AuthType
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], esi
call edi
test eax, eax
jne 0x403814
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
push 0x800
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.004da450
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebx
push ebx
push str.UserName
push edx
mov dword [esp + 0x2c], 0x800
call edi
test eax, eax
jne 0x40386f
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403852
mov esi, dword [esp + 0x24]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
call fcn.004027c0
push 0x800
lea eax, [esp + 0x58]
push ebx
push eax
call fcn.004da450
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x58]
push edx
push ebx
push ebx
push str.Password
push eax
mov dword [esp + 0x2c], 0x800
call edi
test eax, eax
jne 0x40392e
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0x26
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push str.EA52333F_290A_40F5_86FD_98309C3BF487
mov dword [esp + 0x48], ebx
mov dword [esp + 0x64], 1
lea edi, [esp + 0x48]
mov byte [ecx], bl
call fcn.004041f0
mov dword [esp + 0x888], ebx
mov dword [esp + 0x888], 0xffffffff
call fcn.00404a70
mov edi, dword [esp + 0x20]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403904
mov esi, dword [esp + 0x2c]
sub eax, edx
sar eax, 1
push eax
mov eax, edi
call fcn.004027c0
push edi
call fcn.004d5559
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 4
push 0x800
lea edx, [esp + 0x58]
push ebx
push edx
call fcn.004da450
mov edx, dword [esp + 0x28]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push ecx
push ebx
push ebx
push str.Domain
push edx
mov dword [esp + 0x2c], 0x800
call edi
test eax, eax
jne 0x40398d
lea eax, [esp + 0x54]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403970
mov esi, dword [esp + 0x30]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x58]
call fcn.004027c0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40399e
mov al, bl
mov ecx, dword [esp + 0x860]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.004d5564
mov esp, ebp
pop ebp
ret