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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1910
call fcn.0d2a6d30
mov eax, dword [0xd2b0418]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push edx
xor ecx, ecx
push eax
mov word [ebp - 0x20c], cx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x184
push eax
mov dword [ebp - 0x18ec], eax
call dword [sym.imp.USER32.dll_SendMessageW]
test esi, esi
je 0xd29d963
cmp word [esi], 0
je 0xd29d963
push 0x103
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xd29d893
push 0
push 0
sub eax, edx
push 0x208
sar eax, 1
lea edx, [ebp - 0x1088]
push edx
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x1088]
push edx
call dword [sym.imp.USER32.dll_CharToOemA]
lea eax, [ebp - 0x61c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xd29d8e2
push 0x104
sub eax, edx
lea ecx, [ebp - 0x824]
push ecx
inc eax
push eax
lea edx, [ebp - 0x61c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xd29d913
sub eax, edx
sar eax, 1
dec eax
movzx eax, ax
cmp word [ebp + eax*2 - 0x20c], 0x5c
lea eax, [ebp + eax*2 - 0x20c]
jne 0xd29d93d
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0xd29d98f
cmp word [edi], 0
je 0xd29d98f
push 0x12b
push edi
lea edx, [ebp - 0xa7c]
push 0x12c
push edx
call sub.msvcrt.dll_wcsncpy_s
add esp, 0x10
jmp 0xd29d9a5
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0xd29d88a
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x14
push 0x12c
lea eax, [ebp - 0xa7c]
push eax
push 0xae04
call fcn.0d29fa20
push ebx
lea ecx, [ebp - 0xa7c]
push 0xd271c3c
push ecx
call dword [sym.imp.msvcrt.dll_wcstok]
add esp, 8
test eax, eax
je 0xd29db78
mov edi, dword [sym.imp.msvcrt.dll__wstat]
mov ebx, dword [sym.imp.msvcrt.dll_wcsstr]
nop
push eax
lea edx, [ebp - 0x20c]
push edx
push 0xd271a6c
lea eax, [ebp - 0x1290]
push 0x104
push eax
call sub.msvcrt.dll_swprintf_s
lea ecx, [ebp - 0x1910]
push ecx
lea edx, [ebp - 0x824]
push edx
call edi
add esp, 0x1c
cmp eax, 0xffffffff
je 0xd29db90
lea eax, [ebp - 0x18e8]
push eax
lea ecx, [ebp - 0x1290]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0xd29db59
test esi, esi
je 0xd29db59
lea edx, [ebp - 0x18bc]
push edx
lea eax, [ebp - 0x414]
push 0x104
push eax
call sub.msvcrt.dll_wcscpy_s
lea ecx, [ebp - 0x414]
push 0xd271a78
push ecx
call dword [sym.imp.msvcrt.dll_wcspbrk]
add esp, 0x14
test eax, eax
jne 0xd29da7f
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0xe80]
push 0x201
push eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
jmp 0xd29dad2
push 0x101
lea ecx, [ebp - 0x1494]
push ecx
push 0x101
lea edx, [ebp - 0x1698]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll__wsplitpath_s
lea ecx, [ebp - 0x1494]
push ecx
lea edx, [ebp - 0x1698]
push edx
push 0xd271a60
lea eax, [ebp - 0xe80]
push 0x201
push eax
call sub.msvcrt.dll_swprintf_s
add esp, 0x38
cmp dword [ebp + 0x18], 0
jne 0xd29daf2
lea ecx, [ebp - 0xe80]
push 0xd271c4c
push ecx
call ebx
add esp, 8
test eax, eax
je 0xd29daf2
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov eax, dword [ebp - 0x18e8]
test al, 0x16
jne 0xd29db2b
test eax, 0x100
jne 0xd29db2b
mov edx, dword [ebp - 0x18ec]
lea ecx, [ebp - 0xe80]
push ecx
push 0
push 0x180
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x1910]
push eax
lea ecx, [ebp - 0x824]
push ecx
call edi
add esp, 8
cmp eax, 0xffffffff
je 0xd29db90
lea edx, [ebp - 0x18e8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0xd29da31
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xd271c3c
push 0
call dword [sym.imp.msvcrt.dll_wcstok]
add esp, 8
test eax, eax
jne 0xd29d9d0
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0d2a6cd9
mov esp, ebp
pop ebp
ret 0x14