Function at 0x405477
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 0x4054c1
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 3]
cmp ecx, 0x39
ja 0x4054c6
mov dword [0x430228], eax
jmp 0x4054db
cmp edx, 2
je 0x4054db
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
test eax, eax
js 0x405755
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 0x405516
test eax, eax
je 0x405516
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x405755
mov ecx, dword [ebp - 0x14]
push 3
pop eax
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [0x430220], ebx
je 0x40554c
test ecx, ecx
jne 0x405545
call fcn.00410de2
xor ecx, ecx
inc ecx
call fcn.00410e34
mov dword [0x430220], ebx
jmp 0x405579
call fcn.00410e34
jmp 0x405579
test ecx, ecx
je 0x405579
call fcn.00410e34
push ecx
push ecx
call fcn.0040f45d
test eax, eax
js 0x405755
call fcn.00410f0b
mov dword [0x4302c0], ebx
mov dword [0x430220], 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 0x4055a8
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x43022c], eax
jmp 0x4055c2
cmp ecx, 2
je 0x4055c2
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405755
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 0x4055f2
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4055f7
mov dword [0x430230], eax
jmp 0x40560c
cmp ecx, 2
je 0x40560c
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405755
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 0x40563b
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x430234], eax
jmp 0x405655
cmp ecx, 2
je 0x405655
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405755
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 0x405685
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40568a
mov dword [0x430238], eax
jmp 0x40569f
cmp ecx, 2
je 0x40569f
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405755
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 0x4056ce
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x43023c], eax
jmp 0x4056e4
cmp ecx, 2
je 0x4056e4
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405755
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 0x405714
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405719
mov dword [0x430240], eax
jmp 0x40572a
cmp ecx, 2
je 0x40572a
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405755
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 0x405755
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x430244], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret