Function at 0x4053de
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 0x405428
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 3]
cmp ecx, 0x39
ja 0x40542d
mov dword [0x42f228], eax
jmp 0x405442
cmp edx, 2
je 0x405442
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
test eax, eax
js 0x4056bc
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 0x40547d
test eax, eax
je 0x40547d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x4056bc
mov ecx, dword [ebp - 0x14]
push 3
pop eax
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [0x42f220], ebx
je 0x4054b3
test ecx, ecx
jne 0x4054ac
call fcn.00410ae7
xor ecx, ecx
inc ecx
call fcn.00410b2f
mov dword [0x42f220], ebx
jmp 0x4054e0
call fcn.00410b2f
jmp 0x4054e0
test ecx, ecx
je 0x4054e0
call fcn.00410b2f
push ecx
push ecx
call fcn.0040f208
test eax, eax
js 0x4056bc
call fcn.00410c06
mov dword [0x42f2c0], ebx
mov dword [0x42f220], 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 0x40550f
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f22c], eax
jmp 0x405529
cmp ecx, 2
je 0x405529
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056bc
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 0x405559
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40555e
mov dword [0x42f230], eax
jmp 0x405573
cmp ecx, 2
je 0x405573
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056bc
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 0x4055a2
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f234], eax
jmp 0x4055bc
cmp ecx, 2
je 0x4055bc
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056bc
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 0x4055ec
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4055f1
mov dword [0x42f238], eax
jmp 0x405606
cmp ecx, 2
je 0x405606
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056bc
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 0x405635
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f23c], eax
jmp 0x40564b
cmp ecx, 2
je 0x40564b
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056bc
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 0x40567b
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405680
mov dword [0x42f240], eax
jmp 0x405691
cmp ecx, 2
je 0x405691
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x4056bc
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 0x4056bc
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f244], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret