Function at 0x40541e
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 0x405468
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 3]
cmp ecx, 0x39
ja 0x40546d
mov dword [0x430318], eax
jmp 0x405482
cmp edx, 2
je 0x405482
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
test eax, eax
js 0x4056fc
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 0x4054bd
test eax, eax
je 0x4054bd
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x4056fc
mov ecx, dword [ebp - 0x14]
push 3
pop eax
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [0x430310], ebx
je 0x4054f3
test ecx, ecx
jne 0x4054ec
call fcn.00410a51
xor ecx, ecx
inc ecx
call fcn.00410aa3
mov dword [0x430310], ebx
jmp 0x405520
call fcn.00410aa3
jmp 0x405520
test ecx, ecx
je 0x405520
call fcn.00410aa3
push ecx
push ecx
call fcn.0040f05c
test eax, eax
js 0x4056fc
call fcn.00410b7a
mov dword [0x4303b0], ebx
mov dword [0x430310], 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 0x40554f
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x43031c], eax
jmp 0x405569
cmp ecx, 2
je 0x405569
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056fc
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 0x405599
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40559e
mov dword [0x430320], eax
jmp 0x4055b3
cmp ecx, 2
je 0x4055b3
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056fc
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 0x4055e2
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x430324], eax
jmp 0x4055fc
cmp ecx, 2
je 0x4055fc
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056fc
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 0x40562c
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405631
mov dword [0x430328], eax
jmp 0x405646
cmp ecx, 2
je 0x405646
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056fc
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 0x405675
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x43032c], eax
jmp 0x40568b
cmp ecx, 2
je 0x40568b
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056fc
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 0x4056bb
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4056c0
mov dword [0x430330], eax
jmp 0x4056d1
cmp ecx, 2
je 0x4056d1
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056fc
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 0x4056fc
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x430334], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret