Function at 0x10009210
Capabilities:
Enumerate files on windows
Get disk information
Get file version info

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x2cc
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x268], 0x3a0041
mov dword [ebp - 0x264], 0x5c
mov dword [ebp - 0x284], edi
mov dword [ebp - 0x29c], eax
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 8
mov edx, 8
mov ebx, eax
mov eax, edi
call sym._resize_table
test eax, eax
je 0x1000997e
call sym._alloc_dirstack.constprop.0
xor edi, edi
mov esi, ebx
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x290], eax
jmp 0x100092bc
add edi, 1
cmp edi, 0x1a
je 0x10009400
bt esi, edi
jae 0x100092b0
lea eax, [edi + 0x41]
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x268]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 3
jne 0x100092b0
lea eax, [ebp - 0x278]
movzx ecx, word [ebp - 0x268]
mov dword [ebp - 0x278], 0
mov dword [esp], eax
mov edx, dword [ebp - 0x29c]
mov eax, dword [ebp - 0x290]
call sym._seed_dirs
mov ebx, eax
test eax, eax
je 0x10009780
mov ecx, dword [ebp - 0x29c]
xor eax, eax
mov dword [ebp - 0x2b8], esi
mov dword [ebp - 0x2bc], edi
mov ebx, dword [ebp - 0x294]
test ecx, ecx
setne al
mov dword [ebp - 0x2b0], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x28c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x290]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100098a0
mov edi, dword [ebp - 0x290]
lea eax, [ecx - 1]
mov edx, dword [edi + 4]
mov dword [edi + 8], eax
mov ecx, dword [edx + eax*4]
mov edx, dword [edi]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x28c], eax
movzx eax, word [ebp - 0x268]
mov edx, dword [ebp - 0x28c]
call sym._build_glob
mov ebx, eax
test eax, eax
je 0x1000996d
lea esi, [ebp - 0x260]
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
jne 0x10009488
mov edx, dword [ebp - 0x290]
mov eax, dword [edx + 8]
test eax, eax
je 0x100093e0
mov edx, dword [edx]
mov edx, dword [edx + eax*4 - 4]
test edx, edx
jne 0x1000933c
nop
mov edi, dword [ebp - 0x2bc]
mov dword [ebp - 0x294], ebx
mov esi, dword [ebp - 0x2b8]
add edi, 1
cmp edi, 0x1a
jne 0x100092bc
nop
mov esi, dword [ebp - 0x290]
xor ebx, ebx
mov eax, dword [esi + 8]
test eax, eax
jne 0x10009848
lea esi, [esi]
nop
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x294]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x28c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x1002179c], 8
jne 0x10009868
mov eax, dword [ebp - 0x284]
mov esi, dword [ebp - 0x280]
mov dword [eax + 0xc], esi
mov eax, dword [ebp - 0x298]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [ebp - 0x2b4], ebx
mov dword [ebp - 0x288], eax
jmp 0x100094de
mov edx, eax
mov ecx, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x290]
call sym._push_dir
test eax, eax
je 0x10009800
lea esi, [esi]
nop
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x10009908
mov eax, dword [ebp - 0x280]
mov ecx, 8
lea edi, [eax + 1]
mov eax, dword [ebp - 0x284]
mov edx, edi
call sym._resize_table
test eax, eax
je 0x100098c0
lea ebx, [ebp - 0x234]
mov dword [esp + 4], 0x10023908
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x100094c0
mov dword [esp + 4], 0x1002390c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x100094c0
mov eax, dword [ebp - 0x28c]
mov edx, ebx
lea ecx, [ebp - 0x27c]
call sym._append_path
mov ebx, eax
test eax, eax
je 0x100098c0
test byte [ebp - 0x260], 0x10
jne 0x100094a0
mov eax, dword [ebp - 0x284]
mov edx, dword [ebp - 0x2a4]
add edx, dword [eax + 0x14]
movzx eax, word [ebp - 0x268]
mov dword [ebp - 0x298], edx
mov edx, ebx
call sym._build_name
mov edx, dword [ebp - 0x298]
mov dword [ebp - 0x2a0], eax
mov dword [edx], eax
mov dword [esp], 0x40
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x294], eax
test eax, eax
je 0x100097ee
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x270], eax
sub esp, 8
test eax, eax
je 0x100098f0
mov dword [esp], eax
mov dword [ebp - 0x2ac], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2a8], eax
test eax, eax
je 0x100098f0
mov dword [esp + 0xc], eax
mov ecx, dword [ebp - 0x2ac]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dword [sym.imp.version.dll_GetFileVersionInfoW]
sub esp, 0x10
test eax, eax
je 0x100097d0
lea eax, [ebp - 0x270]
mov dword [esp + 4], 0x10023d8e
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x274]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call dword [sym.imp.version.dll_VerQueryValueW]
sub esp, 0x10
test eax, eax
je 0x100097d0
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 8], str._u._u._u._u
mov dword [esp + 4], 0x20
movzx edx, cx
shr ecx, 0x10
mov dword [esp + 0x14], ecx
movzx ecx, ax
shr eax, 0x10
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x294]
mov dword [esp], edx
call sym._swprintf
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x298]
mov edx, dword [ebp - 0x294]
mov dword [eax + 4], edx
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x29c]
test ecx, ecx
je 0x1000970f
lea eax, [ebp - 0x274]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x270]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x280]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call sym._eval_cond
test eax, eax
jne 0x10009750
mov eax, dword [ebp - 0x270]
or eax, dword [ebp - 0x26c]
je 0x10009925
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x1000972a
mov edx, dword [ebp - 0x280]
sub eax, 1
cmp eax, edx
je 0x10009934
mov eax, dword [ebp - 0x2b0]
add dword [ebp - 0x2a4], 8
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x298], eax
jmp 0x100094c0
mov dword [ebp - 0x298], 0xffffffff
mov eax, dword [ebp - 0x280]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call sym._free_row_values
jmp 0x100094c0
mov eax, dword [ebp - 0x290]
mov eax, dword [eax + 8]
test eax, eax
je 0x100097bc
mov dword [ebp - 0x288], esi
mov esi, dword [ebp - 0x290]
lea esi, [esi]
mov edx, dword [esi]
mov edx, dword [edx + ebx*4]
add ebx, 1
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, dword [esi + 8]
jb 0x100097a0
mov esi, dword [ebp - 0x288]
mov eax, dword [ebp - 0x290]
mov dword [eax + 8], 0
jmp 0x10009317
mov eax, dword [ebp - 0x2a8]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x294]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x294], 0
jmp 0x100096a7
mov eax, dword [ebp - 0x2b4]
mov esi, dword [ebp - 0x290]
mov dword [ebp - 0x294], eax
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x288]
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov dword [ebp - 0x298], 0xffffffff
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
je 0x10009418
lea esi, [esi]
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
add ebx, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, dword [esi + 8]
jb 0x10009848
jmp 0x10009418
mov eax, dword [ebp - 0x280]
mov dword [esp + 0xc], str.created__u_rows_n
mov dword [esp + 8], str.fill_datafile
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1002179c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10009463
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x28c], 0
jmp 0x10009388
mov eax, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x288]
mov esi, dword [ebp - 0x290]
mov dword [ebp - 0x294], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x1000982d
mov eax, dword [ebp - 0x294]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x100097ee
mov ecx, dword [ebp - 0x288]
mov ebx, dword [ebp - 0x2b4]
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x100093c3
mov dword [ebp - 0x298], 1
jmp 0x1000975a
mov eax, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x288]
mov esi, dword [ebp - 0x290]
mov dword [ebp - 0x294], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x298], 1
sub esp, 4
jmp 0x10009837
mov dword [ebp - 0x294], eax
mov esi, dword [ebp - 0x290]
jmp 0x1000982d
mov dword [ebp - 0x298], 0xffffffff
jmp 0x10009472