Function at 0x4011d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push edi
lea edi, [edx + 0x40]
push esi
push ebx
sub esp, 0x3a0
mov eax, dword [eax + 0x40]
mov dword [ebp - 0x394], edi
mov dword [ebp - 0x38c], eax
cmp edi, eax
je 0x4013be
mov dword [ebp - 0x390], edx
nop
mov eax, dword [ebp - 0x38c]
mov ebx, dword [eax + 8]
mov dword [esp + 4], 0x4072da
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsstr]
test eax, eax
je 0x4013e0
mov eax, dword [ebp - 0x390]
mov edi, dword [eax + 4]
cmp word [edi], 0
je 0x401580
mov eax, edi
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x401240
sub eax, edi
sar eax, 1
add eax, 1
cmp word [ebx], 0
je 0x40126f
mov edx, ebx
lea esi, cs:[esi]
add edx, 2
cmp word [edx], 0
jne 0x401260
sub edx, ebx
sar edx, 1
add eax, edx
lea eax, [eax + eax + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x40145c
xor eax, eax
lea esi, cs:[esi]
movzx edx, word [edi + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x401290
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathAddBackslashW]
mov edx, esi
sub esp, 4
cmp word [esi], 0
je 0x4012c1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4012b8
xor eax, eax
lea esi, cs:[esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4012c8
lea ebx, [ebp - 0x25c]
mov dword [esp], esi
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
cmp edi, 0xffffffff
je 0x40145c
mov eax, dword [ebp - 0x230]
cmp eax, 0x2e
je 0x401380
cmp eax, 0x2e002e
je 0x4013d0
test byte [ebp - 0x25c], 0x10
jne 0x401380
lea esi, [ebp - 0x230]
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathFindExtensionW]
sub esp, 4
test eax, eax
je 0x401380
mov dword [esp + 4], str..idt
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x401380
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x390]
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ecx + 8]
mov dword [esp], eax
call sym._MsiDatabaseImportW_12
sub esp, 0xc
mov ecx, eax
test eax, eax
jne 0x401560
lea esi, cs:[esi]
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401302
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x38c]
mov eax, dword [eax]
mov dword [ebp - 0x38c], eax
cmp dword [ebp - 0x394], eax
jne 0x401200
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x22c], 0
jne 0x401318
jmp 0x401380
mov dword [esp], ebx
call dword [sym.imp.shlwapi.dll_PathFindExtensionW]
sub esp, 4
test eax, eax
je 0x401408
mov dword [esp + 4], str..idt
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x40142a
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x25c]
mov dword [esp + 8], str._.8s.idt
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call sym._swprintf.constprop.0
mov dword [esp + 8], ebx
mov esi, dword [ebp - 0x390]
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call sym._MsiDatabaseImportW_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4013a4
test byte [section..data], 2
jne 0x401466
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test ebx, ebx
je 0x4018be
mov eax, ebx
shr eax, 0x10
je 0x401764
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x4016fc
cmp word [ebx], 0
je 0x4018c8
lea esi, cs:[esi]
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x4014b0
mov eax, 0x224c
mov dword [ebp - 0x38c], ebx
mov word [ebp - 0x388], ax
lea eax, [ebp - 0x386]
jmp 0x40150a
cmp cx, 9
je 0x401776
cmp cx, 0xa
jne 0x40186d
mov edi, 0x6e5c
add eax, 2
mov word [eax - 2], di
sub edx, 1
jb 0x40154c
lea ecx, [ebp - 0x266]
cmp ecx, eax
jb 0x4016d0
add dword [ebp - 0x38c], 2
mov edi, dword [ebp - 0x38c]
movzx ecx, word [edi - 2]
cmp cx, 0xd
je 0x401787
jbe 0x4014d7
cmp cx, 0x22
je 0x40179a
cmp cx, 0x5c
jne 0x40185a
mov ecx, 0x5c5c
add eax, 2
mov word [eax - 2], cx
sub edx, 1
jae 0x4014fc
mov byte [eax], 0x22
lea edx, [eax + 1]
jmp 0x4016eb
test byte [section..data], 2
jne 0x40158a
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
jmp 0x40145c
mov eax, 1
jmp 0x401250
mov eax, esi
mov dword [ebp - 0x38c], ecx
shr eax, 0x10
je 0x401689
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, dword [ebp - 0x38c]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x40169f
cmp word [ebp - 0x230], 0
je 0x4018e6
lea esi, [esi]
mov eax, edx
lea edx, [edx + 1]
cmp word [ebx + eax*2 + 0x2e], 0
jne 0x4015d8
mov edx, 0x224c
mov dword [ebp - 0x38c], edi
mov word [ebp - 0x388], dx
lea edx, [ebp - 0x386]
mov dword [ebp - 0x390], ecx
jmp 0x40163b
cmp bx, 9
je 0x401753
cmp bx, 0xa
jne 0x4017c0
mov edi, 0x6e5c
add edx, 2
mov word [edx - 2], di
sub eax, 1
jb 0x401672
lea ebx, [ebp - 0x266]
cmp ebx, edx
jb 0x401811
movzx ebx, word [esi]
add esi, 2
cmp bx, 0xd
je 0x401740
jbe 0x401608
cmp bx, 0x22
je 0x40172d
cmp bx, 0x5c
jne 0x4017ad
mov ecx, 0x5c5c
add edx, 2
mov word [edx - 2], cx
sub eax, 1
jae 0x40162d
mov edi, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x390]
mov byte [edx], 0x22
lea eax, [edx + 1]
jmp 0x401838
mov dword [esp + 4], esi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
mov ecx, dword [ebp - 0x38c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_import_table__s__error__d._n
mov dword [esp + 8], str.import_table
mov dword [esp + 4], 0x405000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401569
mov byte [eax], 0x22
test edx, edx
je 0x40154f
mov byte [eax + 3], 0x2e
mov edx, 0x2e2e
mov word [eax + 1], dx
lea edx, [eax + 4]
lea eax, [ebp - 0x388]
mov byte [edx], 0
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_import_table__s__error__d._n
mov dword [esp + 8], str.import_table
mov dword [esp + 4], 0x405000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x40145c
movzx edi, word [0x407a28]
add edx, 2
mov word [edx - 2], di
jmp 0x401628
movzx edi, word [str._r_]
add edx, 2
mov word [edx - 2], di
jmp 0x401628
mov ebx, 0x745c
add edx, 2
mov word [edx - 2], bx
jmp 0x401628
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x4016fc
mov ebx, 0x745c
add eax, 2
mov word [eax - 2], bx
jmp 0x4014f7
movzx edi, word [str._r_]
add eax, 2
mov word [eax - 2], di
jmp 0x4014f7
movzx edi, word [0x407a28]
add eax, 2
mov word [eax - 2], di
jmp 0x4014f7
lea edi, [ebx - 0x20]
cmp di, 0x5e
ja 0x4017c0
mov byte [edx], bl
add edx, 1
jmp 0x401628
mov edi, ebx
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdefopen_database]
mov edi, ebx
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdefopen_database]
mov edi, ebx
and ebx, 0xf
shr di, 4
movzx ebx, byte [ebx + str.0123456789abcdefopen_database]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdefopen_database]
mov byte [edx - 1], bl
mov byte [edx - 2], cl
jmp 0x401628
mov edi, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0x390]
mov byte [edx], 0x22
test eax, eax
je 0x401681
mov byte [edx + 3], 0x2e
mov eax, 0x2e2e
mov word [edx + 1], ax
lea eax, [edx + 4]
mov byte [eax], 0
lea eax, [ebp - 0x388]
mov dword [ebp - 0x38c], ecx
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov ecx, dword [ebp - 0x38c]
jmp 0x40169f
lea edi, [ecx - 0x20]
cmp di, 0x5e
ja 0x40186d
mov byte [eax], cl
add eax, 1
jmp 0x4014f7
mov edi, ecx
mov byte [eax], 0x5c
add eax, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdefopen_database]
mov edi, ecx
shr di, 8
and edi, 0xf
mov byte [eax - 4], bl
movzx ebx, byte [edi + str.0123456789abcdefopen_database]
mov edi, ecx
and ecx, 0xf
shr di, 4
movzx ecx, byte [ecx + str.0123456789abcdefopen_database]
and edi, 0xf
mov byte [eax - 3], bl
movzx ebx, byte [edi + str.0123456789abcdefopen_database]
mov byte [eax - 1], cl
mov byte [eax - 2], bl
jmp 0x4014f7
mov eax, str._null_
jmp 0x4016fc
mov eax, 0x224c
mov byte [ebp - 0x386], 0x22
lea edx, [ebp - 0x385]
mov word [ebp - 0x388], ax
jmp 0x4016eb
mov ebx, 0x224c
mov byte [ebp - 0x386], 0x22
lea eax, [ebp - 0x385]
mov word [ebp - 0x388], bx
jmp 0x401838