Function at 0x411ba0
Capabilities:
Enumerate files on windows
Get common file path
Get startup folder

Disassembly:
mov eax, 0x24d0
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x24cc], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x276f
push dword [0x4def88]
mov edi, ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], edi
call esi
push 0x2785
push dword [0x4def88]
mov dword [esp + 0x18], eax
call esi
push edi
mov edx, 0x4add24
mov dword [esp + 0x28], eax
mov ecx, str.FILE
call fcn.00477440
push eax
push 0x400
push 0x4cf000
call fcn.0040a3c0
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
cmp dword [0x4deb74], 2
jne 0x411c52
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4def88]
call esi
push eax
call ebx
cmp eax, 5
je 0x411c52
push 0x4cf000
push 1
push 0x40b
push dword [0x4deb68]
call ebx
push 2
push 0x400
call fcn.0048f743
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4123fc
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push edi
push ebx
call esi
xor eax, eax
mov ebp, 1
push 0x7fe
push eax
mov word [esp + 0x4e0], ax
lea eax, [esp + 0x4e2]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x4d8]
push edi
push eax
call esi
push 0x4ad2c8
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0xce0], ax
lea eax, [esp + 0xce2]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x80]
mov edi, ebp
push eax
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x411fa5
mov dword [esp + 0x18], 0x800
nop dword [eax + eax]
test edi, edi
je 0x411fa1
cmp dword [0x4c5188], 0
je 0x411f81
push 0x4ad2d0
lea eax, [esp + 0xb0]
push eax
call esi
test eax, eax
je 0x411f68
push 0x4ad2d4
lea eax, [esp + 0xb0]
push eax
call esi
test eax, eax
je 0x411f68
test byte [esp + 0x80], 0x10
je 0x411f68
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0xce0]
push 0x4ad304
push 0x400
push eax
call fcn.0040a3c0
mov edi, dword [esp + 0x2c]
add esp, 0x14
inc ebp
add edi, 0x800
mov eax, ebp
mov dword [esp + 0x18], edi
shl eax, 0xa
push 2
push eax
push ebx
call fcn.00493873
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4123fc
lea eax, [esp + 0xcd8]
push eax
lea eax, [edi - 0x800]
add eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp dword [esp + 0x24e4], 0
jne 0x411f68
lea ecx, [esp + 0xcd8]
call fcn.00476250
test eax, eax
jne 0x411f68
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xcd8]
call fcn.00410a30
test eax, eax
jne 0x411f68
push str.temp
lea eax, [esp + 0x4dc]
push eax
call esi
test eax, eax
je 0x411f68
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push dword [esp + 0x1c]
call edi
push 0x4cf800
push 0
push 0x104d
push dword [esp + 0x1c]
mov dword [0x4cf804], eax
lea eax, [esp + 0xce8]
mov dword [0x4cf81c], 1
mov dword [0x4cf814], eax
call edi
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 2
push eax
push dword [0x4cf804]
mov dword [esp + 0x50], str.Directory
push 0x1074
push dword [esp + 0x1c]
call edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4cf804]
mov dword [esp + 0x44], 1
push 0x1074
push dword [esp + 0x1c]
call edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2d8], ax
lea eax, [esp + 0x2da]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x411f56
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x411f56
movzx eax, word [esp + 0x7a]
push eax
movzx eax, word [esp + 0x7c]
push eax
movzx eax, word [esp + 0x7e]
push eax
movzx eax, word [esp + 0x7e]
push eax
movzx eax, word [esp + 0x80]
push eax
push 0x4ae27c
lea eax, [esp + 0x2e8]
push 0x104
push eax
call fcn.0040a3c0
add esp, 0x20
mov dword [esp + 0x3c], 3
lea eax, [esp + 0x2d0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4cf804]
push 0x1074
push dword [esp + 0x1c]
call edi
push 0x1869f
push 0
push 0x1014
push dword [esp + 0x1c]
call edi
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, eax
jmp 0x411d10
call fcn.004118f0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call fcn.0048f74e
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x24e4], 0
mov eax, 1
je 0x4123ff
cmp ebp, eax
je 0x41214d
mov ecx, 0x800
nop dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
inc eax
add ecx, 0x800
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
lea eax, [ecx - 0x800]
add eax, ebx
push eax
lea eax, [esp + 0x4dc]
push eax
call esi
lea eax, [esp + 0x4d8]
push eax
lea eax, [esp + 0xcdc]
push eax
call esi
push 0x4ad2c8
lea eax, [esp + 0xcdc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x80]
mov esi, 1
push eax
lea eax, [esp + 0xcdc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x41211f
mov edi, ebp
shl edi, 0xb
nop dword [eax]
test esi, esi
je 0x41211b
cmp dword [0x4c5188], 0
je 0x412137
test byte [esp + 0x80], 0x10
je 0x412102
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [esp + 0xac]
push 0x4ad2d0
push eax
call esi
test eax, eax
je 0x412102
push 0x4ad2d4
lea eax, [esp + 0xb0]
push eax
call esi
test eax, eax
je 0x412102
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x4dc]
push eax
push 0x4ad304
lea eax, [esp + 0xce4]
push 0x400
push eax
call fcn.0040a3c0
add esp, 0x14
inc ebp
mov eax, ebp
add edi, 0x800
shl eax, 0xa
push 2
push eax
push ebx
call fcn.00493873
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4123fc
lea eax, [esp + 0xcd8]
push eax
lea eax, [ebx - 0x800]
add eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x412050
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x41214d
mov ecx, dword [esp + 0x14]
jmp 0x411fd0
call fcn.004118f0
push ebx
call fcn.0048f74e
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x14e0], ax
lea eax, [esp + 0x14e2]
push eax
call fcn.0048e880
add esp, 0xc
xor eax, eax
mov word [esp + 0x1cd8], ax
push 0x7fe
push eax
lea eax, [esp + 0x1ce2]
push eax
call fcn.0048e880
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x28]
add esp, 0xc
push eax
push 7
push 0
call edi
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x14d8]
push eax
push dword [esp + 0x20]
call esi
lea eax, [esp + 0x1c]
push eax
push 0x18
push 0
call edi
lea eax, [esp + 0x1cd8]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
jne 0x4121e5
lea eax, [esp + 0x14d8]
push eax
lea eax, [esp + 0x1cdc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
test ebp, ebp
je 0x4123ec
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov esi, ebp
shl esi, 0xb
add esi, ebx
nop word [eax + eax]
dec ebp
sub esi, 0x800
cmp dword [0x4c5188], 0
je 0x412137
push esi
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0x4d8]
call fcn.00476250
test eax, eax
jne 0x4123e4
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4d8]
call fcn.00410a30
test eax, eax
jne 0x4123e4
lea eax, [esp + 0x14d8]
push eax
lea eax, [esp + 0x4dc]
push eax
call edi
test eax, eax
je 0x4123e4
lea eax, [esp + 0x1cd8]
push eax
lea eax, [esp + 0x4dc]
push eax
call edi
test eax, eax
je 0x4123e4
push 0
push 0
push 0x1004
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4cf800
push 0
push 0x104d
push dword [esp + 0x1c]
mov dword [0x4cf804], eax
lea eax, [esp + 0x4e8]
mov dword [0x4cf81c], 1
mov dword [0x4cf814], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 2
push eax
push dword [0x4cf804]
mov dword [esp + 0x50], str.Directory
push 0x1074
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4cf804]
mov dword [esp + 0x44], 1
push 0x1074
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2d8], ax
lea eax, [esp + 0x2da]
push eax
call fcn.0048e880
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x4123ce
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4123ce
movzx eax, word [esp + 0x7a]
push eax
movzx eax, word [esp + 0x7c]
push eax
movzx eax, word [esp + 0x7e]
push eax
movzx eax, word [esp + 0x7e]
push eax
movzx eax, word [esp + 0x80]
push eax
push 0x4ae27c
lea eax, [esp + 0x2e8]
push 0x104
push eax
call fcn.0040a3c0
add esp, 0x20
mov dword [esp + 0x3c], 3
lea eax, [esp + 0x2d0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4cf804]
push 0x1074
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1869f
push 0
push 0x1014
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
test ebp, ebp
jne 0x412200
push ebx
call fcn.0048f74e
add esp, 4
mov eax, 1
jmp 0x4123ff
or eax, 0xffffffff
mov ecx, dword [esp + 0x24dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048d925
add esp, 0x24d0
ret