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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x420]
mov esi, edx
push ebx
sub esp, 0x480
mov dword [ebp - 0x448], eax
mov ecx, dword [eax + 0xc]
xor eax, eax
lea esi, [esi]
movzx edx, word [ecx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x10030110
cmp word [ebp - 0x420], 0
mov edx, edi
je 0x10030139
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10030130
xor eax, eax
mov ecx, 0x69
jmp 0x1003014f
movzx ecx, word [eax + str.index.dat]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10030148
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 - 0x444], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x100304e0
mov eax, dword [ebp - 0x444]
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 0x100305ba
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 - 0x45c], eax
cmp edi, eax
jb 0x10030270
mov esi, dword [ebp - 0x448]
lea eax, [ebp - 0x218]
mov ebx, dword [ebp - 0x444]
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 0x10030460
mov edx, dword [ebp - 0x218]
test edx, edx
jne 0x100303a0
mov eax, dword [ebp - 0x448]
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
lea esp, [edi - 8]
pop edi
ret
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x444]
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 0x100304a0
mov eax, dword [ebp - 0x444]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x100304a0
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0x45c]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x444]
mov dword [esp], 0
call sym._cache_container_map_index
mov dword [ebp - 0x46c], eax
test eax, eax
je 0x100304a0
mov eax, dword [ebp - 0x46c]
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 - 0x460], eax
sub esp, 0x14
test eax, eax
je 0x10030958
cmp esi, 0x80
jbe 0x1003069c
mov eax, dword [ebp - 0x460]
mov eax, dword [eax + 0x1c]
cmp dword [ebp - 0x45c], eax
ja 0x10030a0c
mov eax, dword [ebp - 0x460]
mov edi, dword [ebp - 0x45c]
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 - 0x448]
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 - 0x46c]
mov eax, dword [ebp - 0x45c]
sub esp, 4
mov dword [edi + 0x10], ebx
xor ebx, ebx
mov dword [edi + 0x14], eax
jmp 0x100304af
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 0x100305d1
cmp edi, dword [eax + 0x1c]
jne 0x10030408
mov dword [esp + 8], 0x12
mov dword [esp + 4], str.WINE_URLCache_Ver
mov dword [esp], eax
call sym._memcmp
test eax, eax
jne 0x10030605
cmp dword [esi + 0x12], 0x30322e30
je 0x100305ee
test byte [0x100471c4], 4
jne 0x10030a33
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x448]
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 - 0x448]
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x1003024a
lea esi, cs:[esi]
nop
test byte [0x100471c4], 2
je 0x1003050a
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], 0x100471c4
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_7
jmp 0x1003050a
mov eax, dword fs:[0x18]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x444]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x448]
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
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x448]
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 0x10030536
test byte [0x100471c4], 8
jne 0x10030586
mov eax, dword [ebp - 0x448]
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
lea esp, [edi - 8]
pop edi
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 - 0x444], eax
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x100301a8
test byte [0x100471c4], 8
je 0x1003050a
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], 0x100471c4
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_7
jmp 0x1003050a
mov eax, dword [ebp - 0x444]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
jmp 0x1003050a
mov edi, dword [ebp - 0x448]
mov eax, dword [edi + 0x10]
mov dword [esp], eax
call ebx
mov dword [edi + 0x10], 0
sub esp, 4
jmp 0x10030460
cmp dword [esi + 0x16], 0x30303231
jne 0x10030408
cmp byte [esi + 0x1a], 0x31
jne 0x10030408
mov eax, dword [esi + 0x24]
lea edx, [eax + 0x80]
shl edx, 7
cmp edi, edx
jne 0x10030408
mov ebx, dword [esi + 0x28]
shr eax, 3
mov edi, eax
mov dword [ebp - 0x438], ebx
je 0x10030aeb
lea ebx, [esi + 0x250]
xor edx, edx
add eax, ebx
mov dword [ebp - 0x434], eax
movzx eax, byte [ebx]
test eax, eax
je 0x10030657
lea esi, [esi]
mov ecx, eax
and ecx, 1
cmp ecx, 1
sbb edx, 0xffffffff
shr eax, 1
jne 0x10030648
inc ebx
cmp dword [ebp - 0x434], ebx
jne 0x1003063d
cmp edx, dword [ebp - 0x438]
jne 0x10030408
cmp edi, 0x3daf
ja 0x1003068b
cmp byte [esi + edi + 0x250], 0
jne 0x10030408
inc edi
cmp edi, 0x3db0
jne 0x10030674
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
jmp 0x10030445
mov ebx, dword [ebp - 0x460]
mov edi, dword [ebp - 0x45c]
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
call sym._memset
mov eax, dword [ebp - 0x448]
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 - 0x430]
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 0x10030a5c
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x428]
mov dword [ebp - 0x458], eax
lea ebx, [ebp - 0x42c]
mov eax, dword [ebp - 0x460]
mov ecx, ebx
xor edx, edx
call sym._urlcache_create_hash_table
mov eax, dword [ebp - 0x448]
mov ebx, dword [ebp - 0x458]
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 0x10030788
cmp word [ebp - 0x218], 0
mov eax, dword [ebp - 0x458]
je 0x100307b9
lea esi, cs:[esi]
add eax, 2
cmp word [eax], 0
jne 0x100307b0
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x454]
xor ebx, ebx
mov word [eax + 0x10], bx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0x460]
sub esp, 4
mov esi, dword [eax + 0x48]
test esi, esi
je 0x100309ca
mov dword [ebp - 0x450], 0
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x464], eax
mov eax, dword [ebp - 0x454]
mov dword [ebp - 0x468], 0
add eax, 0x10
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x440], 0
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x43c], 0
mov dword [eax + 0x4c], 0
lea esi, [esi]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
xor ebx, ebx
mov esi, dword [ebp - 0x43c]
mov edi, dword [ebp - 0x450]
mov edx, eax
xor eax, eax
add eax, ecx
mov ecx, dword [ebp - 0x44c]
adc edx, ebx
mov ebx, dword [ebp - 0x440]
or ecx, esi
mov esi, ecx
or edi, ebx
mov ecx, dword [ebp - 0x454]
xor edi, eax
xor esi, edx
jmp 0x100308a2
add ebx, 0x30
add ecx, 2
mov word [ecx - 2], bx
cmp dword [ebp - 0x438], ecx
je 0x10030903
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], 0x24
mov dword [esp + 0xc], 0
mov dword [ebp - 0x434], 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 - 0x434]
mov edi, eax
mov esi, edx
jle 0x10030890
add ebx, 0x37
add ecx, 2
mov word [ecx - 2], bx
cmp dword [ebp - 0x438], ecx
jne 0x100308a2
mov eax, dword [ebp - 0x458]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
jne 0x1003097a
add dword [ebp - 0x43c], 0x10000
mov esi, dword [ebp - 0x43c]
mov ebx, dword [ebp - 0x440]
mov eax, esi
xor eax, 0x1000000
or eax, ebx
jne 0x10030848
mov eax, dword [ebp - 0x460]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov eax, dword [ebp - 0x46c]
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 0x100304af
mov ecx, dword [ebp - 0x454]
mov ebx, dword [ebp - 0x464]
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [ecx + eax*2]
mov byte [ebx + eax + 0x50], dl
inc eax
cmp eax, 8
jne 0x10030990
mov eax, dword [ebp - 0x460]
inc dword [ebp - 0x468]
add dword [ebp - 0x464], 0xc
mov edi, dword [ebp - 0x468]
add dword [ebp - 0x44c], 0x1000000
cmp dword [eax + 0x48], edi
ja 0x10030821
mov eax, dword [ebp - 0x460]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x448]
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 - 0x46c]
sub esp, 4
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebx + 0x14], eax
xor ebx, ebx
jmp 0x100304af
mov edx, dword [ebp - 0x45c]
mov dword [esp + 4], 0
sub edx, eax
add eax, dword [ebp - 0x460]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x10030349
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], 0x100471c4
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_7
jmp 0x10030415
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x428]
mov dword [ebp - 0x428], 4
mov dword [ebp - 0x458], eax
lea ebx, [ebp - 0x42c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x430]
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 0x10030ad4
cmp dword [ebp - 0x218], 4
jne 0x10030ad4
mov eax, dword [ebp - 0x42c]
mov edi, dword [ebp - 0x460]
xor edx, edx
shld edx, eax, 0xa
shl eax, 0xa
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], edx
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x10030762
cmp dword [ebp - 0x438], 0
jne 0x10030408
jmp 0x10030674