Function at 0x411410
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x1cc4
call fcn.004ac5b0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1cbc], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push esi
push edi
push 0x276f
push dword [0x4e6030]
call ebx
push 0x2785
push dword [0x4e6030]
mov ebp, eax
call ebx
mov dword [esp + 0x14], eax
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0xcd0], ax
lea eax, [esp + 0xcd2]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0xcc8]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x14d0], ax
lea eax, [esp + 0x14d2]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0xcc8]
push eax
lea eax, [esp + 0x14cc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4b450c
lea eax, [esp + 0x14cc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x4d0], ax
lea eax, [esp + 0x4d2]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x14cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x411a9a
test byte [esp + 0x70], 0x10
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x4117bf
lea edx, [esp + 0xcc8]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x411530
sub edx, ecx
lea ecx, [esp + 0x9c]
sar edx, 1
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411550
sub ecx, esi
sar ecx, 1
lea eax, [ecx + 4]
add eax, edx
cmp eax, 0x104
jae 0x4117bf
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0xccc]
push eax
push 0x4b3544
lea eax, [esp + 0x4d4]
push 0x400
push eax
call fcn.0040a420
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x4dc]
add esp, 0x14
call fcn.00410b70
test eax, eax
jne 0x4117bf
lea eax, [esp + 0x4c8]
mov edx, 0x4b3f64
push eax
mov ecx, str.FILE
call fcn.00478640
push eax
push 0x400
push 0x4d6040
call fcn.0040a420
add esp, 0x10
cmp dword [0x4e5c1c], 2
jne 0x41161a
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
cmp eax, 5
je 0x41161a
push 0x4d6040
push 1
push 0x40b
push dword [0x4e5c10]
call ebx
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
lea eax, [esp + 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x411643
xor eax, eax
jmp 0x41164f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
test eax, eax
je 0x4117bf
mov edi, dword [esp + 0x8c]
xor esi, esi
add esi, dword [esp + 0x90]
push 0
push 0
push 0x1004
push ebp
adc edi, 0
call ebx
mov edx, 0x4b4014
mov dword [0x4d6844], eax
mov ecx, str.FILE
mov dword [0x4d685c], 0
call fcn.00478640
push 0x4d6840
push 0
push 0x104d
push ebp
mov dword [0x4d6854], eax
call ebx
push edi
push esi
mov dword [esp + 0x34], 1
call fcn.00465af0
add esp, 8
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4d6844]
push 0x1074
push ebp
call ebx
add dword [0x4d5830], esi
lea eax, [esp + 0x4c8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
adc dword [0x4d5834], edi
push eax
push dword [0x4d6844]
mov dword [esp + 0x34], 3
push 0x1074
push ebp
call ebx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c8], ax
lea eax, [esp + 0x2ca]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x4117ac
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4117ac
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6c]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x70]
push eax
push 0x4b44c8
lea eax, [esp + 0x2d8]
push 0x104
push eax
call fcn.0040a420
add esp, 0x20
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x2c0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4d6844]
push 0x1074
push ebp
call ebx
push 0x1869f
push 0
push 0x1014
push ebp
call ebx
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x411a93
test byte [esp + 0x70], 0x10
jne 0x411a7f
lea edx, [esp + 0xcc8]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4117f0
sub edx, ecx
lea eax, [esp + 0x9c]
sar edx, 1
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411810
sub eax, esi
sar eax, 1
add eax, 4
add eax, edx
cmp eax, 0x104
jae 0x411a7f
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0xccc]
push eax
push 0x4b3544
lea eax, [esp + 0x4d4]
push 0x400
push eax
call fcn.0040a420
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x4dc]
add esp, 0x14
call fcn.00410b70
test eax, eax
jne 0x411a7f
lea eax, [esp + 0x4c8]
mov edx, 0x4b3f64
push eax
mov ecx, str.FILE
call fcn.00478640
push eax
push 0x400
push 0x4d6040
call fcn.0040a420
add esp, 0x10
cmp dword [0x4e5c1c], 2
jne 0x4118da
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4e6030]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call ebx
cmp eax, 5
je 0x4118da
push 0x4d6040
push 1
push 0x40b
push dword [0x4e5c10]
call ebx
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
lea eax, [esp + 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x411903
xor eax, eax
jmp 0x41190f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
test eax, eax
je 0x411a7f
mov edi, dword [esp + 0x8c]
xor esi, esi
add esi, dword [esp + 0x90]
push 0
push 0
push 0x1004
push ebp
adc edi, 0
call ebx
mov edx, 0x4b4014
mov dword [0x4d6844], eax
mov ecx, str.FILE
mov dword [0x4d685c], 0
call fcn.00478640
push 0x4d6840
push 0
push 0x104d
push ebp
mov dword [0x4d6854], eax
call ebx
push edi
push esi
mov dword [esp + 0x34], 1
call fcn.00465af0
add esp, 8
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4d6844]
push 0x1074
push ebp
call ebx
add dword [0x4d5830], esi
lea eax, [esp + 0x4c8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
adc dword [0x4d5834], edi
push eax
push dword [0x4d6844]
mov dword [esp + 0x34], 3
push 0x1074
push ebp
call ebx
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2c8], ax
lea eax, [esp + 0x2ca]
push eax
call fcn.0048fb10
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x411a6c
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x411a6c
movzx eax, word [esp + 0x6a]
push eax
movzx eax, word [esp + 0x6c]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x6e]
push eax
movzx eax, word [esp + 0x70]
push eax
push 0x4b44c8
lea eax, [esp + 0x2d8]
push 0x104
push eax
call fcn.0040a420
add esp, 0x20
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x2c0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4d6844]
push 0x1074
push ebp
call ebx
push 0x1869f
push 0
push 0x1014
push ebp
call ebx
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4117d3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1ccc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048ea75
add esp, 0x1cc4
ret