Function at 0x10009200
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 ebx, dword [ecx + 4]
mov dword [ebp - 0x268], 0x3a0041
mov dword [ebp - 0x264], 0x5c
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x29c], ebx
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 8
mov edx, 8
mov dword [ebp - 0x280], eax
mov eax, edi
call sym._resize_table
test eax, eax
je 0x100098d0
call sym._alloc_dirstack.constprop.0
cmp ebx, 1
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x288], 0
mov esi, eax
sbb eax, eax
xor edi, edi
mov dword [ebp - 0x290], 0
inc eax
mov dword [ebp - 0x2b4], eax
mov eax, edi
mov edi, esi
mov dword [ebp - 0x2a0], 0
mov esi, eax
mov dword [ebp - 0x294], 0
jmp 0x100092ba
inc esi
cmp esi, 0x1a
je 0x100093f0
mov eax, dword [ebp - 0x280]
bt eax, esi
jae 0x100092b0
lea eax, [esi + 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
mov dword [ebp - 0x278], 0
mov ebx, dword [ebp - 0x29c]
test ebx, ebx
je 0x10009480
mov edx, dword [ebp - 0x29c]
cmp dword [edx], 1
jne 0x10009480
lea eax, [ebp - 0x278]
movzx ecx, word [ebp - 0x268]
mov dword [esp], eax
mov eax, edi
call sym._seed_dirs.part.0
test eax, eax
je 0x10009480
mov dword [ebp - 0x2bc], esi
mov eax, dword [ebp - 0x290]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x10009838
mov edx, dword [edi + 4]
lea eax, [ecx - 1]
mov dword [edi + 8], eax
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x27c], ecx
mov edx, dword [edi]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x288], eax
movzx eax, word [ebp - 0x268]
mov edx, dword [ebp - 0x288]
call sym._build_glob
mov dword [ebp - 0x290], eax
test eax, eax
je 0x100098b3
lea edx, [ebp - 0x260]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
sub esp, 8
cmp eax, 0xffffffff
jne 0x100094c0
mov eax, dword [edi + 8]
test eax, eax
je 0x100093d8
mov edx, dword [edi]
mov edx, dword [edx + eax*4 - 4]
test edx, edx
jne 0x10009332
lea esi, [esi]
mov esi, dword [ebp - 0x2bc]
inc esi
cmp esi, 0x1a
jne 0x100092ba
lea esi, cs:[esi]
mov esi, edi
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
je 0x10009414
lea esi, cs:[esi]
mov eax, dword [esi]
mov eax, dword [eax + ebx*4]
inc ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, dword [esi + 8]
jb 0x10009400
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 - 0x290]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x288]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
test byte [0x10021048], 8
jne 0x10009800
mov eax, dword [ebp - 0x2a8]
mov edi, dword [ebp - 0x294]
mov dword [eax + 0xc], edi
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 ecx, dword [edi + 8]
xor ebx, ebx
test ecx, ecx
je 0x100094a4
lea esi, [esi]
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
inc ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, dword [edi + 8]
jb 0x10009490
mov dword [edi + 8], 0
mov dword [ebp - 0x2bc], esi
jmp 0x10009332
mov dword [ebp - 0x2ac], edi
mov ebx, dword [ebp - 0x294]
mov edi, dword [ebp - 0x2a8]
jmp 0x10009524
mov ecx, dword [ebp - 0x27c]
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x2ac]
call sym._push_dir
test eax, eax
je 0x100097c0
lea esi, cs:[esi]
nop
lea eax, [ebp - 0x260]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x10009890
lea esi, [ebx + 1]
mov ecx, 8
mov eax, edi
mov edx, esi
call sym._resize_table
test eax, eax
je 0x10009878
lea eax, [ebp - 0x234]
mov dword [esp + 4], 0x10023932
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x10009500
lea eax, [ebp - 0x234]
mov dword [esp + 4], 0x10023936
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x10009500
mov eax, dword [ebp - 0x288]
lea ecx, [ebp - 0x27c]
lea edx, [ebp - 0x234]
call sym._append_path
mov dword [ebp - 0x28c], eax
test eax, eax
je 0x10009878
test byte [ebp - 0x260], 0x10
jne 0x100094d8
mov edx, dword [ebp - 0x28c]
movzx eax, word [ebp - 0x268]
mov ecx, dword [ebp - 0x2a0]
add ecx, dword [edi + 0x14]
mov dword [ebp - 0x298], ecx
call sym._build_name
mov ecx, dword [ebp - 0x298]
mov edx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2a4], eax
mov dword [ecx], eax
mov dword [ebp - 0x2b0], edx
mov dword [esp], 0x40
call edx
mov dword [ebp - 0x294], eax
test eax, eax
je 0x100096f9
mov eax, dword [ebp - 0x2a4]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x270], eax
sub esp, 8
test eax, eax
je 0x1000979f
mov dword [esp], eax
mov dword [ebp - 0x2b8], eax
mov eax, dword [ebp - 0x2b0]
call eax
mov dword [ebp - 0x2b0], eax
test eax, eax
je 0x1000979f
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x2b8]
mov eax, dword [ebp - 0x2a4]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.version.dll_GetFileVersionInfoW]
sub esp, 0x10
test eax, eax
je 0x10009790
lea eax, [ebp - 0x270]
mov dword [esp + 4], 0x10023d5a
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x274]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2b0]
mov dword [esp], eax
call dword [sym.imp.version.dll_VerQueryValueW]
sub esp, 0x10
test eax, eax
je 0x10009790
mov eax, dword [ebp - 0x274]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 8], str._u._u._u._u
mov dword [esp + 4], 0x20
movzx ecx, dx
shr edx, 0x10
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x294]
mov dword [esp + 0x14], edx
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp], ecx
call sym._swprintf
mov eax, dword [ebp - 0x2b0]
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 eax, dword [ebp - 0x28c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp - 0x29c]
test ecx, ecx
je 0x1000975f
lea eax, [ebp - 0x274]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x270]
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._eval_cond
test eax, eax
jne 0x10009858
mov eax, dword [ebp - 0x26c]
or eax, dword [ebp - 0x270]
je 0x100098c4
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x10009772
dec eax
cmp eax, ebx
je 0x100098df
mov eax, dword [ebp - 0x2b4]
add dword [ebp - 0x2a0], 8
mov ebx, esi
mov dword [ebp - 0x298], eax
jmp 0x10009500
mov eax, dword [ebp - 0x2b0]
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 0x100096f9
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x294], ebx
mov esi, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x284]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x298], 0xffffffff
sub esp, 4
jmp 0x100093f2
mov eax, dword [ebp - 0x294]
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], 0x10021048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000945f
mov dword [ebp - 0x27c], 0
mov dword [ebp - 0x288], 0
jmp 0x10009378
mov dword [ebp - 0x298], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._free_row_values
jmp 0x10009500
mov dword [ebp - 0x294], ebx
mov esi, dword [ebp - 0x2ac]
jmp 0x100097db
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x294], ebx
mov edi, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x100093bd
mov dword [ebp - 0x298], 0xffffffff
mov esi, edi
jmp 0x100093f2
mov dword [ebp - 0x298], 1
jmp 0x10009862
mov dword [ebp - 0x298], 0xffffffff
jmp 0x1000946e
mov eax, dword [ebp - 0x284]
mov ebx, esi
mov esi, dword [ebp - 0x2ac]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x298], 1
sub esp, 4
jmp 0x100093f2