Function at 0x4051c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xfb0
mov eax, dword [0x4495f8]
xor eax, esp
mov dword [esp + 0xfac], eax
mov edx, dword [0x44aaa4]
push esi
mov esi, dword [esp + 0xfb8]
push edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x7e8]
push ecx
push 0
push 0
push str.Extensions
mov edi, 0x7d0
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405218
xor eax, eax
jmp 0x405479
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405220
sub eax, edx
cmp eax, edi
jae 0x405211
push ebx
lea ebx, [esp + 0x18]
push ebp
mov dword [esp + 0x10], edi
mov eax, esi
sub ebx, esi
jmp 0x405240
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x405240
mov ebp, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push 0x30000000
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
mov edx, ecx
push edx
call ebp
lea eax, [esp + 0x1c]
push 0x43b25c
push eax
call fcn.004224d0
add esp, 8
test eax, eax
je 0x4052a1
inc eax
lea edx, [esp + 0x1c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405281
lea ecx, [esp + 0x1c]
push 0x43b25c
push ecx
call fcn.004224d0
add esp, 8
test eax, eax
jne 0x40527a
lea eax, [esp + 0x1c]
lea esi, [esp + 0x7ec]
mov dword [esp + 0x14], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052b7
sub eax, edx
lea edx, [esp + 0x1c]
push 0x43b258
push edx
mov edi, eax
call fcn.00423e20
add esp, 8
test eax, eax
jne 0x405350
push edi
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00435077
add esp, 0xc
test eax, eax
jne 0x4052fe
mov al, byte [edi + esi]
cmp al, 0x20
je 0x405465
test al, al
je 0x405465
push 0x43b254
push esi
call fcn.004224d0
lea ecx, [edi + esi]
add esp, 8
cmp ecx, eax
jbe 0x405337
push 0x43b254
push esi
call fcn.004224d0
sub eax, esi
push eax
lea edx, [esp + 0x28]
push edx
push esi
call fcn.00435077
add esp, 0x14
test eax, eax
je 0x405465
push 0x43b250
push esi
call fcn.004224d0
mov esi, eax
add esp, 8
test esi, esi
je 0x405350
add esi, 1
jne 0x4052d8
mov esi, dword [esp + 0x18]
push 0x3f
push esi
call fcn.00422410
add esp, 8
test eax, eax
je 0x405473
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x405370
push 0x30000000
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x20], 0x7d0
call ebp
lea eax, [esp + 0x1c]
push 0x3f
push eax
call fcn.00422410
lea ecx, [esp + 0x24]
push 0x2e
push ecx
mov byte [eax], 0
lea esi, [esp + 0x7fc]
call fcn.00423660
mov edi, eax
add esp, 0x10
test edi, edi
je 0x405473
mov ebp, 1
add edi, ebp
push 0x43b24c
push edi
call fcn.00423e20
add esp, 8
test eax, eax
jne 0x405473
cmp byte [edi], al
je 0x405473
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4053f0
sub eax, edx
mov ebx, eax
jmp 0x405400
push ebx
push edi
push esi
call fcn.00435077
add esp, 0xc
test eax, eax
jne 0x40541a
mov al, byte [ebx + esi]
cmp al, 0x20
je 0x40546f
test al, al
je 0x40546f
push 0x43b254
push esi
call fcn.004224d0
lea edx, [ebx + esi]
add esp, 8
cmp edx, eax
jbe 0x40544b
push 0x43b254
push esi
call fcn.004224d0
sub eax, esi
push eax
push edi
push esi
call fcn.00435077
add esp, 0x14
test eax, eax
je 0x40546f
push 0x43b250
push esi
call fcn.004224d0
mov esi, eax
add esp, 8
test esi, esi
je 0x405473
add esi, ebp
jne 0x405400
jmp 0x405473
mov dword [esp + 0x14], 1
in al, dx