Function at 0x41f8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42e3e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
mov eax, 0x450134
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push esi
push edi
test eax, eax
mov dword [esp + 0x1c], ecx
jne 0x41f906
xor eax, eax
jmp 0x41f90d
push 0x450134
call ebp
mov ebx, dword [esp + 0x240]
push 0x450134
push eax
mov ecx, ebx
call fcn.00406dc0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push str.ProxyEnable
mov esi, 4
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41f9d0
cmp dword [esp + 0x14], esi
jne 0x41f9d0
mov ecx, dword [0x436cfc]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x10]
push edx
push str.ProxyEnable:__d_r_n
push eax
mov dword [esp + 0x244], 0
call fcn.00417340
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [eax - 8]
push eax
push ecx
mov ecx, ebx
call fcn.00406e80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x436d00]
mov dword [esp + 0x238], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41f9f1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x41f9f1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042d5f4
add esp, 4
jmp 0x41f9f1
mov ecx, str.ProxyEnable:_NULL_r_n
test ecx, ecx
jne 0x41f9dd
xor eax, eax
jmp 0x41f9e4
push str.ProxyEnable:_NULL_r_n
call ebp
push str.ProxyEnable:_NULL_r_n
push eax
mov ecx, ebx
call fcn.00406e80
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str.User_Agent
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
mov dword [esp + 0x30], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41fa8c
cmp dword [esp + 0x14], 1
jne 0x41fa8c
mov edx, str.User_Agent:
test edx, edx
jne 0x41fa42
xor eax, eax
jmp 0x41fa49
push str.User_Agent:
call ebp
push str.User_Agent:
push eax
mov ecx, ebx
call fcn.00406e80
lea eax, [esp + 0x28]
test eax, eax
je 0x41fa65
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x28]
mov ecx, ebx
push edx
push eax
call fcn.00406e80
mov eax, 0x4500a4
test eax, eax
jne 0x41fa7e
push eax
jmp 0x41faa5
push 0x4500a4
call ebp
push 0x4500a4
jmp 0x41faa5
mov ecx, str.User_Agent:_NULL_r_n
test ecx, ecx
jne 0x41fa99
xor eax, eax
jmp 0x41faa0
push str.User_Agent:_NULL_r_n
call ebp
push str.User_Agent:_NULL_r_n
push eax
mov ecx, ebx
call fcn.00406e80
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str.ProxyOverride
mov esi, 0x208
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41fbc0
mov ecx, dword [esp + 0x14]
mov eax, 1
cmp ecx, eax
jne 0x41fbc0
mov edx, dword [0x436cfc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x238], eax
lea eax, [esp + 0x28]
test eax, eax
je 0x41fb20
lea ecx, [esp + 0x28]
push ecx
call ebp
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00406dc0
mov eax, str.ProxyOverride:
test eax, eax
je 0x41fb3f
push str.ProxyOverride:
call ebp
push str.ProxyOverride:
push eax
mov ecx, ebx
call fcn.00406e80
push ebx
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.004219f0
mov ecx, dword [esp + 0x24]
call fcn.0041fdd0
mov eax, 0x4500a4
test eax, eax
je 0x41fb77
push 0x4500a4
call ebp
push 0x4500a4
push eax
mov ecx, ebx
call fcn.00406e80
mov eax, dword [esp + 0x10]
mov edx, dword [0x436d00]
mov dword [esp + 0x238], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41fbdd
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x41fbdd
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.0042d5f4
add esp, 4
jmp 0x41fbdd
mov eax, str.ProxyOverride:_NULL_r_n
test eax, eax
je 0x41fbd0
push str.ProxyOverride:_NULL_r_n
call ebp
push str.ProxyOverride:_NULL_r_n
push eax
mov ecx, ebx
call fcn.00406e80
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
lea edx, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x14]
push ecx
push edx
push eax
push str.ProxyServer
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x41fcf5
cmp dword [esp + 0x14], 1
jne 0x41fcf5
mov ecx, dword [0x436cfc]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x238], 2
test edx, edx
jne 0x41fc46
xor eax, eax
jmp 0x41fc4d
lea eax, [esp + 0x28]
push eax
call ebp
lea ecx, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00406dc0
mov edx, str.ProxyServer:
test edx, edx
jne 0x41fc69
xor eax, eax
jmp 0x41fc70
push str.ProxyServer:
call ebp
push str.ProxyServer:
push eax
mov ecx, ebx
call fcn.00406e80
push ebx
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004219f0
mov ecx, dword [esp + 0x24]
call fcn.0041fdd0
mov ecx, 0x4500a4
test ecx, ecx
jne 0x41fca5
xor eax, eax
jmp 0x41fcac
push 0x4500a4
call ebp
push 0x4500a4
push eax
mov ecx, ebx
call fcn.00406e80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x436d00]
mov dword [esp + 0x238], 0xffffffff
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x41fd16
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x41fd16
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042d5f4
add esp, 4
jmp 0x41fd16
mov ecx, str.ProxyServer:_NULL_r_n
test ecx, ecx
jne 0x41fd02
xor eax, eax
jmp 0x41fd09
push str.ProxyServer:_NULL_r_n
call ebp
push str.ProxyServer:_NULL_r_n
push eax
mov ecx, ebx
call fcn.00406e80
mov edx, str._r_n_r_n
test edx, edx
je 0x41fda7
push edx
call ebp
test eax, eax
je 0x41fda7
mov edx, dword [ebx]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x41fd75
mov edi, dword [edx - 8]
mov ecx, dword [edx - 4]
lea ebp, [edi + eax]
cmp ebp, ecx
jg 0x41fd75
inc ecx
cmp ecx, eax
jb 0x41fd60
mov ecx, eax
add edi, edx
mov edx, ecx
mov esi, str._r_n_r_n
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov ebx, dword [ebx]
mov eax, dword [ebx - 8]
mov byte [eax + ebx], 0
jmp 0x41fda7
mov ecx, dword [edx - 8]
push str._r_n_r_n
push eax
push edx
push ecx
mov ecx, ebx
call fcn.0040e0f0
test eax, eax
je 0x41fda7
cmp esi, dword [0x436d00]
je 0x41fda7
push esi
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jg 0x41fda7
push esi
call fcn.0042d5f4
add esp, 4
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x22c
ret 4