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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497823
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x4c606c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x484], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x488], eax
mov byte [ebp - 0x465], 0
je 0x410774
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0
push eax
push 0x20019
push 0
push str.S_1_5_18SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4106bf
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x4106bf
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], esi
push ecx
push esi
push esi
push str.ProxyEnable
push eax
mov dword [ebp - 0x414], 4
call edi
mov esi, eax
test esi, esi
jne 0x410636
cmp dword [ebp - 0x418], eax
je 0x4106a0
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00472130
add esp, 0xc
mov dword [ebp - 0x414], 0x3fe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push esi
push str.ProxyServer
push dword [ebp - 0x464]
call edi
mov esi, eax
test esi, esi
jne 0x410585
lea eax, [ebp - 0x410]
mov byte [ebp - 0x465], 1
push eax
lea ecx, [ebp - 0x448]
call fcn.004047e0
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 2
call fcn.0044b850
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x410144
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ca1e0
call fcn.0040b1e0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040a3c0
mov edx, 0x4adac4
mov ecx, eax
call fcn.0040a3c0
push 0x17f
mov ecx, eax
call fcn.00408a40
mov edx, str.:_Read_registry_ProxyServer:
mov ecx, eax
call fcn.0040a3c0
cmp dword [ebp - 0x434], 8
lea edx, [ebp - 0x448]
push dword [ebp - 0x438]
cmovae edx, dword [ebp - 0x448]
mov ecx, eax
call fcn.0040b1e0
push eax
call fcn.0040a730
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x4101f2
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4101e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41093a
push edx
push ecx
call fcn.0045a3a4
add esp, 8
cmp dword [ebp - 0x434], 8
lea ecx, [ebp - 0x448]
mov eax, dword [ebp - 0x438]
lea edx, [ebp - 0x48c]
cmovae ecx, dword [ebp - 0x448]
mov dword [ebp - 0x48c], 0x3b
mov dword [ebp - 0x490], 0x20
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x448]
cmovae ecx, dword [ebp - 0x448]
push eax
push ecx
lea ecx, [ebp - 0x490]
call fcn.00414b80
add esp, 8
lea ecx, [ebp - 0x448]
push 0
push 0x3b
call fcn.00414b20
cmp eax, 0xffffffff
je 0x4102bd
push eax
push 0
lea eax, [ebp - 0x480]
push eax
lea ecx, [ebp - 0x448]
call fcn.00414ac0
push eax
lea ecx, [ebp - 0x460]
call fcn.0040c570
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x4102cf
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4102b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41093f
push edx
push ecx
call fcn.0045a3a4
add esp, 8
jmp 0x4102cf
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x460]
call fcn.004146f0
push 0
push 0x3d
lea ecx, [ebp - 0x460]
call fcn.00414b20
cmp eax, 0xffffffff
je 0x410347
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x460]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00414ac0
push eax
lea ecx, [ebp - 0x430]
call fcn.0040c570
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x410359
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41033b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410944
push edx
push ecx
call fcn.0045a3a4
add esp, 8
jmp 0x410359
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x430]
call fcn.004146f0
mov ecx, dword [ebp - 0x484]
lea eax, [ebp - 0x430]
push eax
call fcn.004146f0
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00472130
add esp, 0xc
mov dword [ebp - 0x414], 0x3fe
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
push 0
push 0
push str.ProxyOverride
push dword [ebp - 0x464]
call edi
mov esi, eax
test esi, esi
jne 0x4103e7
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4103c0
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x488]
push eax
call fcn.00407680
jmp 0x410496
lea ecx, [ebp - 0x480]
call fcn.0044b850
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x410401
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ca1e0
call fcn.0040b1e0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040a3c0
mov edx, 0x4adac4
mov ecx, eax
call fcn.0040a3c0
push 0x1a1
mov ecx, eax
call fcn.00408a40
mov edx, str.:_GetProxySettings_RegQueryValueExW_3__error:
mov ecx, eax
call fcn.0040a3c0
push esi
mov ecx, eax
call fcn.00413a80
push eax
call fcn.0040a730
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x410496
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41048c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410949
push edx
push ecx
call fcn.0045a3a4
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x41c]
cmp edx, 8
jb 0x4104da
mov ecx, dword [ebp - 0x430]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4104d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41094e
push edx
push ecx
call fcn.0045a3a4
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44c]
cmp edx, 8
jb 0x41051e
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410514
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410953
push edx
push ecx
call fcn.0045a3a4
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
cmp edx, 8
jb 0x4106a0
mov ecx, dword [ebp - 0x448]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410696
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410958
jmp 0x410696
lea ecx, [ebp - 0x480]
call fcn.0044b850
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4105a2
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ca1e0
call fcn.0040b1e0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040a3c0
mov edx, 0x4adac4
mov ecx, eax
call fcn.0040a3c0
push 0x1a6
mov ecx, eax
call fcn.00408a40
mov edx, str.:_GetProxySettings_RegQueryValueExW_2__error:
mov ecx, eax
call fcn.0040a3c0
push esi
mov ecx, eax
call fcn.00413a80
push eax
call fcn.0040a730
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x4106a0
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410696
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41095d
jmp 0x410696
cmp esi, 2
je 0x4106a0
lea ecx, [ebp - 0x480]
call fcn.0044b850
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x410658
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ca1e0
call fcn.0040b1e0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040a3c0
mov edx, 0x4adac4
mov ecx, eax
call fcn.0040a3c0
push 0x1ac
mov ecx, eax
call fcn.00408a40
mov edx, str.:_GetProxySettings_RegQueryValueExW_1__error:
jmp 0x4105db
push edx
push ecx
call fcn.0045a3a4
add esp, 8
push dword [ebp - 0x464]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x465]
test al, al
jne 0x41091d
jmp 0x410774
lea ecx, [ebp - 0x480]
call fcn.0044b850
mov dword [ebp - 4], 7
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4106dc
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ca1e0
call fcn.0040b1e0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040a3c0
mov edx, 0x4adac4
mov ecx, eax
call fcn.0040a3c0
push 0x1b2
mov ecx, eax
call fcn.00408a40
mov edx, str.:_GetProxySettings_RegOpenKeyExW_error:
mov ecx, eax
call fcn.0040a3c0
push esi
mov ecx, eax
call fcn.00413a80
push eax
call fcn.0040a730
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x410774
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41076a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41095d
push edx
push ecx
call fcn.0045a3a4
add esp, 8
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x428], xmm0
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
cmp eax, 1
je 0x410893
lea ecx, [ebp - 0x4a8]
call fcn.0044b850
mov dword [ebp - 4], 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4107b1
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x4ca1e0
call fcn.0040b1e0
add esp, 4
mov edx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetupinstallerservicefactory.cpp
mov ecx, eax
call fcn.0040a3c0
mov edx, 0x4adac4
mov ecx, eax
call fcn.0040a3c0
push 0x1bc
mov ecx, eax
call fcn.00408a40
mov edx, str.:_Failed_to_get_current_user_proxy_data:
mov ecx, eax
call fcn.0040a3c0
mov esi, eax
test esi, esi
jne 0x4107fb
xor ecx, ecx
jmp 0x410802
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.004138e0
mov edx, eax
test edx, edx
jne 0x41082a
xor ecx, ecx
jmp 0x410831
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
mov eax, dword [ecx + 0x14]
and eax, 0xfffff3ff
or eax, 0x200
push edx
mov dword [ecx + 0x14], eax
call fcn.0040a730
mov edx, dword [ebp - 0x494]
add esp, 4
cmp edx, 8
jb 0x410917
mov ecx, dword [ebp - 0x4a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x410884
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41095d
push edx
push ecx
call fcn.0045a3a4
add esp, 8
jmp 0x410917
mov eax, dword [ebp - 0x424]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x4108a6
push eax
call edi
mov esi, dword [ebp - 0x420]
test esi, esi
je 0x4108e4
mov edx, esi
mov byte [ebp - 0x465], 1
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4108c0
sub edx, ecx
mov ecx, dword [ebp - 0x484]
sar edx, 1
push edx
push esi
call fcn.00407680
push dword [ebp - 0x420]
call edi
mov esi, dword [ebp - 0x41c]
test esi, esi
je 0x410917
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4108f3
sub edx, ecx
mov ecx, dword [ebp - 0x488]
sar edx, 1
push edx
push esi
call fcn.00407680
push dword [ebp - 0x41c]
call edi
mov al, byte [ebp - 0x465]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459e83
mov esp, ebp
pop ebp
ret 0xc
call fcn.004750dc
call fcn.004750dc
call fcn.004750dc
call fcn.004750dc
call fcn.004750dc
call fcn.004750dc
call fcn.004750dc
call fcn.004750dc
int3