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

Disassembly:
mov eax, 0x24d0
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x24cc], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
push edi
push 0x276f
push dword [0x4e6030]
mov dword [esp + 0x30], edx
call esi
push 0x2785
push dword [0x4e6030]
mov dword [esp + 0x1c], eax
call esi
push ebx
mov edx, 0x4b3f64
mov dword [esp + 0x28], eax
mov ecx, str.FILE
call fcn.00478640
push eax
push 0x400
push 0x4d6040
call fcn.0040a420
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
cmp dword [0x4e5c1c], 2
jne 0x411e0e
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4e6030]
call esi
push eax
call ebp
cmp eax, 5
je 0x411e0e
push 0x4d6040
push 1
push 0x40b
push dword [0x4e5c10]
call ebp
push 2
push 0x400
call fcn.004909d3
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x412650
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
push eax
call edi
xor eax, eax
mov dword [esp + 0x1c], 1
push 0x7fe
push eax
mov word [esp + 0x4e0], ax
lea eax, [esp + 0x4e2]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x4d8]
push ebx
push eax
call edi
push 0x4b3508
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.0048fb10
add esp, 0xc
lea eax, [esp + 0x80]
mov esi, 1
push eax
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4121a9
mov edi, 0x800
test esi, esi
je 0x4121a3
cmp dword [0x4cc1c8], 0
je 0x412183
push 0x4b3510
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41216d
push 0x4b3514
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41216d
test byte [esp + 0x80], 0x10
je 0x41216d
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411f22
sub edx, ecx
lea ecx, [esp + 0xac]
sar edx, 1
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411f40
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 4]
add eax, edx
cmp eax, 0x104
jae 0x41216d
lea eax, [esp + 0xac]
push eax
push ebx
push 0x4b3544
lea eax, [esp + 0xce4]
push 0x400
push eax
call fcn.0040a420
mov eax, dword [esp + 0x30]
add esp, 0x14
inc eax
add edi, 0x800
mov dword [esp + 0x1c], eax
shl eax, 0xa
push 2
push eax
push dword [esp + 0x20]
call fcn.00494b03
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x412650
lea ecx, [esp + 0xcd8]
add eax, 0xfffff800
push ecx
add eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp dword [esp + 0x24e4], 0
jne 0x41216d
lea ecx, [esp + 0xcd8]
call fcn.00477450
test eax, eax
jne 0x41216d
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xcd8]
call fcn.00410b70
test eax, eax
jne 0x41216d
push str.temp
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x41216d
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1004
push dword [esp + 0x20]
call esi
push 0x4d6840
push 0
push 0x104d
push dword [esp + 0x20]
mov dword [0x4d6844], eax
mov eax, dword [esp + 0x38]
mov dword [0x4d685c], 1
mov dword [0x4d6854], eax
call esi
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 1
push eax
push dword [0x4d6844]
mov dword [esp + 0x50], str.Directory
push 0x1074
push dword [esp + 0x20]
call esi
lea eax, [esp + 0xcd8]
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4d6844]
push 0x1074
push dword [esp + 0x20]
call esi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2d8], ax
lea eax, [esp + 0x2da]
push eax
call fcn.0048fb10
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 0x41215b
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x41215b
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 0x4b44c8
lea eax, [esp + 0x2e8]
push 0x104
push eax
call fcn.0040a420
add esp, 0x20
mov dword [esp + 0x3c], 2
lea eax, [esp + 0x2d0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4d6844]
push 0x1074
push dword [esp + 0x20]
call esi
push 0x1869f
push 0
push 0x1014
push dword [esp + 0x20]
call esi
lea eax, [esp + 0x80]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x411ec4
call fcn.00411ac0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x18]
call fcn.004909de
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x24e4], 0
mov eax, 1
je 0x412653
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
cmp ebp, eax
je 0x41239f
mov ecx, 0x800
nop dword [eax + eax]
inc eax
add ecx, 0x800
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
lea eax, [ecx - 0x800]
add eax, ebx
push eax
lea eax, [esp + 0x4dc]
push eax
call edi
lea eax, [esp + 0x4d8]
push eax
lea eax, [esp + 0xcdc]
push eax
call edi
push 0x4b3508
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 + 0x1c], edi
cmp edi, 0xffffffff
je 0x41236b
mov edi, ebp
shl edi, 0xb
test esi, esi
je 0x412367
cmp dword [0x4cc1c8], 0
je 0x412389
test byte [esp + 0x80], 0x10
je 0x41234e
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
lea eax, [esp + 0xac]
push 0x4b3510
push eax
call esi
test eax, eax
je 0x41234e
push 0x4b3514
lea eax, [esp + 0xb0]
push eax
call esi
test eax, eax
je 0x41234e
lea edx, [esp + 0x4d8]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4122b7
sub edx, ecx
lea eax, [esp + 0xac]
sar edx, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4122d0
sub eax, esi
sar eax, 1
add eax, 4
add eax, edx
cmp eax, 0x104
jae 0x41234e
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x4dc]
push eax
push 0x4b3544
lea eax, [esp + 0xce4]
push 0x400
push eax
call fcn.0040a420
add esp, 0x14
inc ebp
mov eax, ebp
add edi, 0x800
shl eax, 0xa
push 2
push eax
push ebx
call fcn.00494b03
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x412650
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 + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x412256
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x41239f
mov ecx, dword [esp + 0x2c]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
jmp 0x4121e0
call fcn.00411ac0
push ebx
call fcn.004909de
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.0048fb10
add esp, 0xc
xor eax, eax
mov word [esp + 0x1cd8], ax
push 0x7fe
push eax
lea eax, [esp + 0x1ce2]
push eax
call fcn.0048fb10
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x2c]
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 + 0x24]
call esi
lea eax, [esp + 0x20]
push eax
push 0x18
push 0
call edi
lea eax, [esp + 0x1cd8]
push eax
push dword [esp + 0x24]
call esi
test eax, eax
jne 0x412437
lea eax, [esp + 0x14d8]
push eax
lea eax, [esp + 0x1cdc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
test ebp, ebp
je 0x412640
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov esi, ebp
shl esi, 0xb
add esi, ebx
nop dword [eax]
dec ebp
sub esi, 0x800
cmp dword [0x4cc1c8], 0
je 0x412389
push esi
lea eax, [esp + 0x4dc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ecx, [esp + 0x4d8]
call fcn.00477450
test eax, eax
jne 0x412638
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4d8]
call fcn.00410b70
test eax, eax
jne 0x412638
lea eax, [esp + 0x14d8]
push eax
lea eax, [esp + 0x4dc]
push eax
call edi
test eax, eax
je 0x412638
lea eax, [esp + 0x1cd8]
push eax
lea eax, [esp + 0x4dc]
push eax
call edi
test eax, eax
je 0x412638
push 0
push 0
push 0x1004
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4d6840
push 0
push 0x104d
push dword [esp + 0x20]
mov dword [0x4d6844], eax
mov eax, dword [esp + 0x38]
mov dword [0x4d685c], 1
mov dword [0x4d6854], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 1
push eax
push dword [0x4d6844]
mov dword [esp + 0x50], str.Directory
push 0x1074
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x4d8]
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4d6844]
push 0x1074
push dword [esp + 0x20]
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.0048fb10
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 0x412622
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x412622
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 0x4b44c8
lea eax, [esp + 0x2e8]
push 0x104
push eax
call fcn.0040a420
add esp, 0x20
mov dword [esp + 0x3c], 2
lea eax, [esp + 0x2d0]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
push dword [0x4d6844]
push 0x1074
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1869f
push 0
push 0x1014
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
test ebp, ebp
jne 0x412450
push ebx
call fcn.004909de
add esp, 4
mov eax, 1
jmp 0x412653
or eax, 0xffffffff
mov ecx, dword [esp + 0x24dc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x24d0
ret