Function at 0x6c130aa0
Capabilities:
Create directory
Get file size
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x428]
mov esi, edx
push ebx
sub esp, 0x48c
mov dword [ebp - 0x450], eax
mov ecx, dword [eax + 0xc]
xor eax, eax
nop
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6c130ac0
cmp word [ebp - 0x428], 0
mov edx, edi
je 0x6c130ae9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c130ae0
xor eax, eax
mov ecx, 0x69
jmp 0x6c130aff
movzx ecx, word [eax + str.index.dat]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6c130af8
mov dword [esp + 0x18], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], edi
call ebx
mov dword [ebp - 0x44c], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x6c130e90
mov eax, dword [ebp - 0x44c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFileSize]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x6c130f66
cmp esi, 0x1ed80
mov ebx, 0x1ed80
mov eax, pe_nt_image_headers32
cmovbe ebx, esi
cmp ebx, 0x80
cmovb ebx, eax
lea eax, [ebx + 0x80]
shl eax, 7
mov dword [ebp - 0x464], eax
cmp edi, eax
jb 0x6c130c20
mov esi, dword [ebp - 0x450]
lea eax, [ebp - 0x220]
mov ebx, dword [ebp - 0x44c]
mov ecx, edi
mov edx, dword [esi + 0xc]
mov dword [esi + 0x14], edi
mov dword [esp], eax
mov eax, ebx
call sym._cache_container_map_index
mov dword [esi + 0x10], eax
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
mov eax, dword [esi + 0x10]
sub esp, 4
test eax, eax
je 0x6c130e10
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x6c130d50
mov eax, dword [ebp - 0x450]
xor ebx, ebx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
cmp eax, 0xffffffff
je 0x6c130e50
mov eax, dword [ebp - 0x44c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x6c130e50
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x464]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x44c]
mov dword [esp], 0
call sym._cache_container_map_index
mov dword [ebp - 0x474], eax
test eax, eax
je 0x6c130e50
mov eax, dword [ebp - 0x474]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x468], eax
sub esp, 0x14
test eax, eax
je 0x6c1312f8
cmp esi, 0x80
jbe 0x6c131044
mov eax, dword [ebp - 0x468]
mov eax, dword [eax + 0x1c]
cmp dword [ebp - 0x464], eax
ja 0x6c1313ac
mov eax, dword [ebp - 0x468]
mov edi, dword [ebp - 0x464]
mov dword [eax + 0x24], ebx
mov dword [eax + 0x1c], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x450]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call esi
mov ebx, dword [ebp - 0x474]
mov eax, dword [ebp - 0x464]
sub esp, 4
mov dword [edi + 0x10], ebx
xor ebx, ebx
mov dword [edi + 0x14], eax
jmp 0x6c130e5f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov esi, eax
test eax, eax
je 0x6c130f7d
cmp edi, dword [eax + 0x1c]
jne 0x6c130db8
mov dword [esp + 8], 0x12
mov dword [esp + 4], str.WINE_URLCache_Ver
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x6c130fb1
cmp dword [esi + 0x12], 0x30322e30
je 0x6c130f9a
test byte [0x6c1471c4], 4
jne 0x6c1313d3
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x450]
sub esp, 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x64
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sym.wininet.dll_FreeUrlCacheSpaceW
sub esp, 0xc
mov eax, dword [ebp - 0x450]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x6c130bfa
lea esi, [esi]
lea esi, [esi]
test byte [0x6c1471c4], 2
je 0x6c130eba
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Couldnt_create_file_mapping__error_is__ld__n
mov dword [esp + 8], str.cache_container_open_index
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6c1471c4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_7
jmp 0x6c130eba
mov eax, dword fs:[0x18]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x44c]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x450]
sub esp, 4
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x450]
mov dword [esp + 4], 0
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x6c130ee2
test byte [0x6c1471c4], 8
jne 0x6c130f32
mov eax, dword [ebp - 0x450]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReleaseMutex]
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0xc0000000
mov dword [esp], edi
call ebx
mov dword [ebp - 0x44c], eax
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x6c130b58
test byte [0x6c1471c4], 8
je 0x6c130eba
mov eax, edi
call sym._wine_dbgstr_wn.constprop.0_2
mov dword [esp + 0xc], str.Could_not_open_or_create_cache_index_file___s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.cache_container_open_index
mov dword [esp + 4], 0x6c1471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x6c130eba
mov eax, dword [ebp - 0x44c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x6c130eba
mov edi, dword [ebp - 0x450]
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call ebx
mov dword [edi + 0x10], 0
sub esp, 4
jmp 0x6c130e10
cmp dword [esi + 0x16], 0x30303231
jne 0x6c130db8
cmp byte [esi + 0x1a], 0x31
jne 0x6c130db8
mov eax, dword [esi + 0x24]
lea edx, [eax + 0x80]
shl edx, 7
cmp edi, edx
jne 0x6c130db8
mov ebx, dword [esi + 0x28]
shr eax, 3
mov edi, eax
mov dword [ebp - 0x440], ebx
je 0x6c13148b
lea ebx, [esi + 0x250]
xor edx, edx
add eax, ebx
mov dword [ebp - 0x43c], eax
movzx eax, byte [ebx]
test eax, eax
je 0x6c130fff
mov ecx, eax
and ecx, 1
cmp ecx, 1
sbb edx, 0xffffffff
shr eax, 1
jne 0x6c130ff0
inc ebx
cmp dword [ebp - 0x43c], ebx
jne 0x6c130fe9
cmp edx, dword [ebp - 0x440]
jne 0x6c130db8
cmp edi, 0x3daf
ja 0x6c131033
cmp byte [esi + edi + 0x250], 0
jne 0x6c130db8
inc edi
cmp edi, 0x3db0
jne 0x6c13101c
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
jmp 0x6c130df5
mov ebx, dword [ebp - 0x468]
mov edi, dword [ebp - 0x464]
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
call sym._memset
mov eax, dword [ebp - 0x450]
mov byte [ebx + 0x1a], 0x31
mov edx, 0x2072
mov dword [ebx], 0x454e4957
mov dword [ebx + 4], 0x4c525520
mov dword [ebx + 8], 0x68636143
mov dword [ebx + 0xc], 0x65562065
mov word [ebx + 0x10], dx
mov dword [ebx + 0x12], 0x30322e30
mov dword [ebx + 0x16], 0x30303231
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x24], pe_nt_image_headers32
mov dword [ebx + 0x30], 0x7ff5400
mov dword [ebx + 0x34], 0
cmp dword [eax + 0x1c], 1
sete al
movzx eax, al
shl eax, 2
mov dword [ebx + 0x48], eax
lea eax, [ebp - 0x438]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsCacheContent
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x6c1313fc
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x430]
mov dword [ebp - 0x460], eax
lea ebx, [ebp - 0x434]
mov eax, dword [ebp - 0x468]
mov ecx, ebx
xor edx, edx
call sym._urlcache_create_hash_table
mov eax, dword [ebp - 0x450]
mov ebx, dword [ebp - 0x460]
mov ecx, dword [eax + 0xc]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x6c131130
cmp word [ebp - 0x220], 0
mov eax, dword [ebp - 0x460]
je 0x6c131159
add eax, 2
cmp word [eax], 0
jne 0x6c131150
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x45c]
xor ebx, ebx
mov word [eax + 0x10], bx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x468]
sub esp, 4
mov esi, dword [eax + 0x48]
test esi, esi
je 0x6c13136a
mov dword [ebp - 0x458], 0
mov eax, dword [ebp - 0x468]
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x470], 0
add eax, 0x10
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x448], 0
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x444], 0
mov dword [eax + 0x4c], 0
lea esi, [esi]
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x430]
xor ebx, ebx
mov esi, dword [ebp - 0x444]
mov edi, dword [ebp - 0x458]
mov edx, eax
xor eax, eax
add eax, ecx
mov ecx, dword [ebp - 0x454]
adc edx, ebx
mov ebx, dword [ebp - 0x448]
or ecx, esi
mov esi, ecx
or edi, ebx
mov ecx, dword [ebp - 0x45c]
xor edi, eax
xor esi, edx
jmp 0x6c131242
add ebx, 0x30
add ecx, 2
mov word [ecx - 2], bx
cmp dword [ebp - 0x440], ecx
je 0x6c1312a3
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], 0x24
mov dword [esp + 0xc], 0
mov dword [ebp - 0x43c], ecx
call sym.___umoddi3
mov dword [esp], edi
mov dword [esp + 4], esi
mov ebx, eax
mov dword [esp + 8], 0x25
mov dword [esp + 0xc], 0
call sym.___udivdi3
cmp ebx, 9
mov ecx, dword [ebp - 0x43c]
mov edi, eax
mov esi, edx
jle 0x6c131230
add ebx, 0x37
add ecx, 2
mov word [ecx - 2], bx
cmp dword [ebp - 0x440], ecx
jne 0x6c131242
mov eax, dword [ebp - 0x460]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x6c13131a
add dword [ebp - 0x444], 0x10000
mov esi, dword [ebp - 0x444]
mov ebx, dword [ebp - 0x448]
mov eax, esi
xor eax, 0x1000000
or eax, ebx
jne 0x6c1311e8
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebp - 0x474]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call esi
sub esp, 4
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
jmp 0x6c130e5f
mov ecx, dword [ebp - 0x45c]
mov ebx, dword [ebp - 0x46c]
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ecx + eax*2]
mov byte [ebx + eax + 0x50], dl
inc eax
cmp eax, 8
jne 0x6c131330
mov eax, dword [ebp - 0x468]
inc dword [ebp - 0x470]
add dword [ebp - 0x46c], 0xc
mov edi, dword [ebp - 0x470]
add dword [ebp - 0x454], 0x1000000
cmp dword [eax + 0x48], edi
ja 0x6c1311c1
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x450]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x474]
sub esp, 4
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x464]
mov dword [ebx + 0x14], eax
xor ebx, ebx
jmp 0x6c130e5f
mov edx, dword [ebp - 0x464]
mov dword [esp + 4], 0
sub edx, eax
add eax, dword [ebp - 0x468]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x6c130cf9
mov dword [esp + 0xc], str.detected_old_or_broken_index.dat_file_n
mov dword [esp + 8], str.cache_container_open_index
mov dword [esp + 4], 0x6c1471c4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x6c130dc5
lea eax, [ebp - 0x220]
lea esi, [ebp - 0x430]
mov dword [ebp - 0x430], 4
mov dword [ebp - 0x460], eax
lea ebx, [ebp - 0x434]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x438]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], str.CacheLimit
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x6c131474
cmp dword [ebp - 0x220], 4
jne 0x6c131474
mov eax, dword [ebp - 0x434]
mov edi, dword [ebp - 0x468]
xor edx, edx
shld edx, eax, 0xa
shl eax, 0xa
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
mov eax, dword [ebp - 0x438]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x6c13110a
cmp dword [ebp - 0x440], 0
jne 0x6c130db8
jmp 0x6c13101c