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

Disassembly:
mov eax, 0x1cc4
call fcn.004a5e30
mov eax, dword [0x4c4004]
xor eax, esp
mov dword [esp + 0x1cbc], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x276f
push dword [0x4def88]
call edi
push 0x2785
push dword [0x4def88]
mov ebp, eax
call edi
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.0048e880
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.0048e880
add esp, 0xc
lea eax, [esp + 0xcc8]
push eax
lea eax, [esp + 0x14cc]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x4ae2c0
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.0048e880
add esp, 0xc
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x14cc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
je 0x4118c8
test byte [esp + 0x70], 0x10
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x411633
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0xccc]
push eax
push 0x4ad304
lea eax, [esp + 0x4d4]
push 0x400
push eax
call fcn.0040a3c0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x4dc]
add esp, 0x14
call fcn.00410a30
test eax, eax
jne 0x411633
lea eax, [esp + 0x4c8]
mov edx, 0x4add24
push eax
mov ecx, str.FILE
call fcn.00477440
push eax
push 0x400
push 0x4cf000
call fcn.0040a3c0
add esp, 0x10
cmp dword [0x4deb74], 2
jne 0x411488
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4def88]
call edi
push eax
call ebx
cmp eax, 5
je 0x411488
push 0x4cf000
push 1
push 0x40b
push dword [0x4deb68]
call ebx
push 0
push 0x20000000
push 3
push 0
push 4
push 0xc0000000
lea eax, [esp + 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4114b1
xor eax, eax
jmp 0x4114bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
test eax, eax
je 0x411633
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
push 0x4cf800
push 0
mov dword [0x4cf804], eax
lea eax, [esp + 0x4d0]
push 0x104d
push ebp
mov dword [0x4cf81c], 0
mov dword [0x4cf814], eax
call ebx
push edi
push esi
mov dword [esp + 0x34], 2
call fcn.00464970
add esp, 8
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4cf804]
push 0x1074
push ebp
call ebx
add dword [0x4ce7f0], esi
mov edx, 0x4addd4
mov ecx, str.FILE
mov dword [esp + 0x2c], 1
adc dword [0x4ce7f4], edi
call fcn.00477440
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4cf804]
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.0048e880
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 0x41161a
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x41161a
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 0x4ae27c
lea eax, [esp + 0x2d8]
push 0x104
push eax
call fcn.0040a3c0
add esp, 0x20
mov dword [esp + 0x2c], 3
lea eax, [esp + 0x2c0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4cf804]
push 0x1074
push ebp
call ebx
push 0x1869f
push 0
push 0x1014
push ebp
call ebx
mov esi, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4118c1
nop word [eax + eax]
test byte [esp + 0x70], 0x10
jne 0x4118a7
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0xccc]
push eax
push 0x4ad304
lea eax, [esp + 0x4d4]
push 0x400
push eax
call fcn.0040a3c0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x4dc]
add esp, 0x14
call fcn.00410a30
test eax, eax
jne 0x4118a7
lea eax, [esp + 0x4c8]
mov edx, 0x4add24
push eax
mov ecx, str.FILE
call fcn.00477440
push eax
push 0x400
push 0x4cf000
call fcn.0040a3c0
add esp, 0x10
cmp dword [0x4deb74], 2
jne 0x411702
push 0
push 0
push 0x130b
push 0x2763
push dword [0x4def88]
call edi
push eax
call ebx
cmp eax, 5
je 0x411702
push 0x4cf000
push 1
push 0x40b
push dword [0x4deb68]
call ebx
push 0
push 0x20000000
push 3
push 0
push 4
push 0xc0000000
lea eax, [esp + 0x4e0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41172b
xor eax, eax
jmp 0x411737
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
test eax, eax
je 0x4118a7
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
push 0x4cf800
push 0
mov dword [0x4cf804], eax
lea eax, [esp + 0x4d0]
push 0x104d
push ebp
mov dword [0x4cf81c], 0
mov dword [0x4cf814], eax
call ebx
push edi
push esi
mov dword [esp + 0x34], 2
call fcn.00464970
add esp, 8
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4cf804]
push 0x1074
push ebp
call ebx
add dword [0x4ce7f0], esi
mov edx, 0x4addd4
mov ecx, str.FILE
mov dword [esp + 0x2c], 1
adc dword [0x4ce7f4], edi
call fcn.00477440
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4cf804]
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.0048e880
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 0x411894
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x411894
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 0x4ae27c
lea eax, [esp + 0x2d8]
push 0x104
push eax
call fcn.0040a3c0
add esp, 0x20
mov dword [esp + 0x2c], 3
lea eax, [esp + 0x2c0]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push dword [0x4cf804]
push 0x1074
push ebp
call ebx
push 0x1869f
push 0
push 0x1014
push ebp
call ebx
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x70]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
jne 0x411650
push esi
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.0048d925
add esp, 0x1cc4
ret