Function at 0x5194a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6057eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
lea eax, [esi + 0x654]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov dword [esi + 0x664], 0x64
mov dword [eax], 0x96
mov eax, 0x50
mov dword [esi + 0x658], eax
mov dword [esi + 0x65c], eax
mov dword [esi + 0x660], eax
mov eax, 0xfa
mov dword [esi + 0x668], eax
mov dword [esi + 0x66c], eax
lea eax, [ebp - 0x24]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6cc7b8
push 0
push str.SoftwareDownloadManagerGrabberDlgLS
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x519597
lea ecx, [ebp - 0x234]
call fcn.0049c670
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.0049c790
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0
call fcn.0049c780
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
mov ebx, 4
push str.FileName
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x5195c8
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0
push 0
push str.FileType
push eax
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x5195ef
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x658], ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
push str.Size
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x519616
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x65c], edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push 0x6a6364
push edx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x51963d
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x660], eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
push edx
push 0
push 0
push 0x6a5c40
push eax
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x519664
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x664], ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push 0
push 0x6a1744
push ecx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x51968b
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x668], edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push str.SaveTo
push edx
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x5196b2
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x66c], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
jne 0x51972e
mov ecx, dword [esi + 0x658]
test ecx, ecx
jne 0x51972e
mov ecx, dword [esi + 0x65c]
test ecx, ecx
jne 0x51972e
mov ecx, dword [esi + 0x660]
test ecx, ecx
jne 0x51972e
mov ecx, dword [esi + 0x664]
test ecx, ecx
jne 0x51972e
mov ecx, dword [esi + 0x668]
test ecx, ecx
jne 0x51972e
mov ecx, dword [esi + 0x66c]
test ecx, ecx
jne 0x51972e
mov dword [eax], 0x96
mov eax, 0x50
mov dword [esi + 0x658], eax
mov dword [esi + 0x65c], eax
mov dword [esi + 0x660], eax
mov eax, 0xfa
mov dword [esi + 0x664], 0x64
mov dword [esi + 0x668], eax
mov dword [esi + 0x66c], eax
push 0
mov ebx, 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x51975c
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push esi
call edi
push 0x5a
push esi
mov ebx, eax
call edi
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp ebx, 0x60
je 0x51956a
mov esi, dword [ebp - 0x20]
xor edi, edi
cmp edi, 7
jge 0x51956a
mov eax, dword [esi]
push 0x60
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esi], eax
inc edi
add esi, 4
jmp 0x51976a