Function at 0x1001a6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x1bc]
push ebx
sub esp, 0x1d0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], ParseURLW
mov dword [esp + 4], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x1001a6f0
mov esi, eax
movzx eax, ax
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c0]
lea ebx, [ebp - 0x1b8]
mov dword [ebp - 0x1c0], pe_nt_image_headers32
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1bc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Content_Type
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x1bc]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x1001a798
test byte [0x10056380], 8
jne 0x1001a7b0
mov eax, dword [ebp - 0x1c0]
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edx, dword [ebp + 0xc]
sub esp, 4
mov dword [edx], eax
mov edx, dword [ebp - 0x1c0]
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, si
or eax, 0x80070000
test esi, esi
cmovg esi, eax
lea esp, [ebp - 0xc]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, ebx
shr eax, 0x10
je 0x1001a990
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, 0x1005d14d
sub esp, 8
test eax, eax
jne 0x1001a8be
cmp word [ebp - 0x1b8], 0
je 0x1001a9ba
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x1001a7f0
mov ecx, 0x224c
mov dword [ebp - 0x1c4], edx
mov esi, ebx
mov word [ebp - 0x138], cx
lea ecx, [ebp - 0x136]
jmp 0x1001a85a
cmp ax, 9
je 0x1001a960
cmp ax, 0xa
jne 0x1001a90e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
mov edi, dword [ebp - 0x1c4]
lea eax, [edi - 1]
test edi, edi
jle 0x1001a890
lea edi, [ebp - 0x16]
cmp ecx, edi
ja 0x1001a890
mov dword [ebp - 0x1c4], eax
movzx eax, word [esi]
add esi, 2
cmp ax, 0xd
je 0x1001a8f0
jbe 0x1001a820
cmp ax, 0x22
je 0x1001a978
cmp ax, 0x5c
jne 0x1001a901
mov edi, 0x5c5c
add ecx, 2
mov word [ecx - 2], di
jmp 0x1001a840
mov byte [ecx], 0x22
test eax, eax
jle 0x1001a9d3
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.found_MIME__s_n
mov dword [esp + 8], str.find_mime_from_ext
mov dword [esp + 4], 0x10056380
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_11
jmp 0x1001a759
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1001a840
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x1001a9b0
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx edx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], dl
movzx edx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], dl
movzx edx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
jmp 0x1001a840
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1001a840
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x1001a840
movzx eax, bx
mov dword [esp], 0x1005d157
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_9
mov edx, eax
jmp 0x1001a8be
mov byte [ecx], al
add ecx, 1
jmp 0x1001a840
mov eax, 0x224c
mov byte [ebp - 0x136], 0x22
lea ecx, [ebp - 0x136]
mov word [ebp - 0x138], ax
lea eax, [ecx + 1]
jmp 0x1001a8ab