Function at 0x405432
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
mov esi, ecx
mov dword [ebp - 0x14], ebx
push str.Timeout
push esi
call edi
mov edx, eax
test edx, edx
jne 0x40547c
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 3]
cmp ecx, 0x39
ja 0x405481
mov dword [0x4301f8], eax
jmp 0x405496
cmp edx, 2
je 0x405496
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.LogLevel
push esi
call edi
cmp eax, 2
je 0x4054d1
test eax, eax
je 0x4054d1
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x405710
mov ecx, dword [ebp - 0x14]
push 3
pop eax
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [0x4301f0], ebx
je 0x405507
test ecx, ecx
jne 0x405500
call fcn.00410a4f
xor ecx, ecx
inc ecx
call fcn.00410aa1
mov dword [0x4301f0], ebx
jmp 0x405534
call fcn.00410aa1
jmp 0x405534
test ecx, ecx
je 0x405534
call fcn.00410aa1
push ecx
push ecx
call fcn.0040f084
test eax, eax
js 0x405710
call fcn.00410b78
mov dword [0x430290], ebx
mov dword [0x4301f0], 1
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.CDBufferRead
push esi
call edi
mov ecx, eax
test ecx, ecx
jne 0x405563
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x4301fc], eax
jmp 0x40557d
cmp ecx, 2
je 0x40557d
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.CDBufferSize
push esi
call edi
mov ecx, eax
test ecx, ecx
jne 0x4055ad
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4055b2
mov dword [0x430200], eax
jmp 0x4055c7
cmp ecx, 2
je 0x4055c7
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.NetworkBufferRead
push esi
call edi
mov ecx, eax
test ecx, ecx
jne 0x4055f6
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x430204], eax
jmp 0x405610
cmp ecx, 2
je 0x405610
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.NetworkBufferSize
push esi
call edi
mov ecx, eax
test ecx, ecx
jne 0x405640
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405645
mov dword [0x430208], eax
jmp 0x40565a
cmp ecx, 2
je 0x40565a
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.InternetBufferRead
push esi
call edi
mov ecx, eax
test ecx, ecx
jne 0x405689
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x43020c], eax
jmp 0x40569f
cmp ecx, 2
je 0x40569f
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.InternetBufferSize
push esi
call edi
mov ecx, eax
test ecx, ecx
jne 0x4056cf
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4056d4
mov dword [0x430210], eax
jmp 0x4056e5
cmp ecx, 2
je 0x4056e5
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405710
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.BufferWrite
push esi
call edi
test eax, eax
jne 0x405710
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x430214], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret