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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2dc
mov dword [ebp - 0x270], 0x3a0041
mov dword [ebp - 0x26c], 0x5c
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov ecx, 8
mov edx, 8
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 8]
call sym._resize_table
test eax, eax
je 0x71049930
call sym._alloc_dirstack.constprop.0
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x294], 0
mov esi, eax
sbb eax, eax
xor edi, edi
mov dword [ebp - 0x29c], 0
inc eax
mov dword [ebp - 0x2b8], eax
mov eax, edi
mov edi, esi
mov dword [ebp - 0x2a8], 0
mov esi, eax
mov dword [ebp - 0x2a0], 0
jmp 0x7104932a
inc esi
cmp esi, 0x1a
je 0x71049450
mov eax, dword [ebp - 0x28c]
bt eax, esi
jae 0x71049320
lea eax, [esi + 0x41]
mov word [ebp - 0x270], ax
lea eax, [ebp - 0x270]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
sub esp, 4
cmp eax, 3
jne 0x71049320
mov dword [ebp - 0x280], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x710494e0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 1
jne 0x710494e0
lea eax, [ebp - 0x280]
movzx ecx, word [ebp - 0x270]
mov edx, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, edi
call sym._seed_dirs.part.0
test eax, eax
je 0x710494e0
mov dword [ebp - 0x2c0], esi
mov eax, dword [ebp - 0x29c]
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 ecx, dword [edi + 8]
test ecx, ecx
je 0x71049898
mov edx, dword [edi + 4]
lea eax, [ecx - 1]
mov dword [edi + 8], eax
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x284], ecx
mov edx, dword [edi]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x294], eax
movzx eax, word [ebp - 0x270]
mov edx, dword [ebp - 0x294]
call sym._build_glob
mov dword [ebp - 0x29c], eax
test eax, eax
je 0x71049913
lea ecx, [ebp - 0x268]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x290], eax
sub esp, 8
cmp eax, 0xffffffff
jne 0x71049520
mov eax, dword [edi + 8]
test eax, eax
je 0x71049440
mov edx, dword [edi]
mov edx, dword [edx + eax*4 - 4]
test edx, edx
jne 0x7104939f
nop
mov esi, dword [ebp - 0x2c0]
inc esi
cmp esi, 0x1a
jne 0x7104932a
mov esi, edi
mov eax, dword [esi + 8]
xor ebx, ebx
test eax, eax
je 0x71049474
lea esi, [esi]
nop
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 0x71049460
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 - 0x29c]
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]
test byte [0x71060048], 8
jne 0x71049860
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x2a0]
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0x2a4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 8]
xor ebx, ebx
test eax, eax
je 0x71049504
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 0x710494f0
mov dword [edi + 8], 0
mov dword [ebp - 0x2c0], esi
jmp 0x7104939f
mov dword [ebp - 0x2b0], edi
mov ebx, dword [ebp - 0x2a0]
mov edi, dword [ebp + 8]
jmp 0x71049584
mov ecx, dword [ebp - 0x284]
mov edx, dword [ebp - 0x298]
mov eax, dword [ebp - 0x2b0]
call sym._push_dir
test eax, eax
je 0x71049820
lea esi, [esi]
nop
lea eax, [ebp - 0x268]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x290]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x710498f0
lea esi, [ebx + 1]
mov ecx, 8
mov eax, edi
mov edx, esi
call sym._resize_table
test eax, eax
je 0x710498d8
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 0x71062890
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x71049560
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 0x71062894
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x71049560
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x284]
lea edx, [ebp - 0x23c]
call sym._append_path
mov dword [ebp - 0x298], eax
test eax, eax
je 0x710498d8
test byte [ebp - 0x268], 0x10
jne 0x71049538
mov edx, dword [ebp - 0x298]
movzx eax, word [ebp - 0x270]
mov ecx, dword [ebp - 0x2a8]
add ecx, dword [edi + 0x14]
mov dword [ebp - 0x2a4], ecx
call sym._build_name
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x2ac], eax
mov dword [ecx], eax
mov dword [ebp - 0x2b4], edx
mov dword [esp], 0x40
call edx
mov dword [ebp - 0x2a0], eax
test eax, eax
je 0x71049759
mov eax, dword [ebp - 0x2ac]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x278], eax
sub esp, 8
test eax, eax
je 0x710497ff
mov dword [esp], eax
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2b4]
call eax
mov dword [ebp - 0x2b4], eax
test eax, eax
je 0x710497ff
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x2ac]
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 0x710497f0
lea eax, [ebp - 0x278]
mov dword [esp + 4], 0x71062cf2
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x27c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call dword [sym.imp.version.dll_VerQueryValueW]
sub esp, 0x10
test eax, eax
je 0x710497f0
mov eax, dword [ebp - 0x27c]
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 + 0x14], edx
movzx edx, ax
shr eax, 0x10
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x2a0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp], edx
call sym._swprintf
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [ebp - 0x2a0]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x298]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x710497bf
lea eax, [ebp - 0x27c]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x278]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._eval_cond
test eax, eax
jne 0x710498b8
mov eax, dword [ebp - 0x274]
or eax, dword [ebp - 0x278]
je 0x71049924
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x710497d2
dec eax
cmp eax, ebx
je 0x7104993f
mov eax, dword [ebp - 0x2b8]
add dword [ebp - 0x2a8], 8
mov ebx, esi
mov dword [ebp - 0x2a4], eax
jmp 0x71049560
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2a0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2a0], 0
jmp 0x71049759
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x2a0], ebx
mov esi, dword [ebp - 0x2b0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x290]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x2a4], 0xffffffff
sub esp, 4
jmp 0x71049452
mov eax, dword [ebp - 0x2a0]
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], 0x71060048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x710494bf
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x294], 0
jmp 0x710493e5
mov dword [ebp - 0x2a4], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._free_row_values
jmp 0x71049560
mov dword [ebp - 0x2a0], ebx
mov esi, dword [ebp - 0x2b0]
jmp 0x7104983b
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2a0], ebx
mov edi, dword [ebp - 0x2b0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x7104942a
mov dword [ebp - 0x2a4], 0xffffffff
mov esi, edi
jmp 0x71049452
mov dword [ebp - 0x2a4], 1
jmp 0x710498c2
mov dword [ebp - 0x2a4], 0xffffffff
jmp 0x710494cb
mov eax, dword [ebp - 0x290]
mov ebx, esi
mov esi, dword [ebp - 0x2b0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x2a4], 1
sub esp, 4
jmp 0x71049452