Function at 0x405376
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 0x4053c0
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 3]
cmp ecx, 0x39
ja 0x4053c5
mov dword [0x42f318], eax
jmp 0x4053da
cmp edx, 2
je 0x4053da
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
test eax, eax
js 0x405654
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 0x405415
test eax, eax
je 0x405415
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x405654
mov ecx, dword [ebp - 0x14]
push 3
pop eax
cmp ecx, eax
cmova ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [0x42f310], ebx
je 0x40544b
test ecx, ecx
jne 0x405444
call fcn.004107e2
xor ecx, ecx
inc ecx
call fcn.0041082a
mov dword [0x42f310], ebx
jmp 0x405478
call fcn.0041082a
jmp 0x405478
test ecx, ecx
je 0x405478
call fcn.0041082a
push ecx
push ecx
call fcn.0040ee8b
test eax, eax
js 0x405654
call fcn.00410901
mov dword [0x42f3b0], ebx
mov dword [0x42f310], 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 0x4054a7
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f31c], eax
jmp 0x4054c1
cmp ecx, 2
je 0x4054c1
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405654
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 0x4054f1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4054f6
mov dword [0x42f320], eax
jmp 0x40550b
cmp ecx, 2
je 0x40550b
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405654
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 0x40553a
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f324], eax
jmp 0x405554
cmp ecx, 2
je 0x405554
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405654
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 0x405584
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405589
mov dword [0x42f328], eax
jmp 0x40559e
cmp ecx, 2
je 0x40559e
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405654
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 0x4055cd
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f32c], eax
jmp 0x4055e3
cmp ecx, 2
je 0x4055e3
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405654
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 0x405613
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405618
mov dword [0x42f330], eax
jmp 0x405629
cmp ecx, 2
je 0x405629
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x405654
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 0x405654
cmp dword [ebp - 0x10], eax
setne al
mov dword [0x42f334], eax
pop edi
pop esi
pop ebx
leave
ret