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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x990
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x208
mov dword [ebp - 0x980], eax
lea eax, [ebp - 0x514]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x71c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x30c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [esi + 8]
lea eax, [ebp - 0x30c]
xor ebx, ebx
push dword [esi]
mov dword [ebp - 0x970], ebx
push dword [esi + 4]
push str._s__s__s
push 0x104
push eax
call fcn.00457fd0
lea edi, [ebp - 0x30c]
add esp, 0x3c
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x536f50
push 0x104
lea eax, [ebp - 0x514]
sub edi, ecx
push eax
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x53718d
push str.WinSxS_
lea eax, [ebp - 0x514]
push 0x104
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x514]
push eax
push 0x689488
lea eax, [ebp - 0x71c]
push 0x104
push eax
call fcn.00457fd0
lea eax, [ebp - 0x30c]
push 0x104
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s
movzx ebx, word [esi + 0x18]
xor eax, eax
mov dword [ebp - 0x978], eax
add esp, 0x28
movzx eax, word [esi + 0x1a]
mov dword [ebp - 0x974], eax
lea eax, [ebp - 0x96c]
push eax
lea eax, [ebp - 0x71c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x97c], esi
cmp esi, 0xffffffff
je 0x537178
test byte [ebp - 0x96c], 0x10
je 0x537107
lea eax, [ebp - 0x940]
push 0x104
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x940]
push eax
call sub.VCRUNTIME140.dll_wcsstr
add esp, 0x10
test eax, eax
je 0x537107
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea esi, [ebp - 0x93e]
lea esi, [esi + edi*2]
push 0x5f
push esi
call sub.VCRUNTIME140.dll_wcschr
lea ecx, [ebp - 0x940]
sub eax, ecx
sar eax, 1
sub eax, edi
dec eax
push eax
push esi
lea eax, [ebp - 0x104]
push 0x80
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s
lea eax, [ebp - 0x104]
add esp, 0x24
mov dword [ebp - 0x990], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x537094
sub eax, edx
xorps xmm0, xmm0
sar eax, 1
mov dword [ebp - 0x98c], eax
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x990]
movlpd qword [ebp - 0x988], xmm0
push eax
call fcn.00536e20
movzx ecx, word [ebp - 0x984]
add esp, 8
cmp ecx, ebx
jb 0x537107
movzx eax, word [ebp - 0x982]
jne 0x5370e6
cmp eax, dword [ebp - 0x974]
jb 0x537107
mov dword [ebp - 0x974], eax
mov esi, 1
lea eax, [ebp - 0x940]
mov dword [ebp - 0x970], esi
mov ebx, ecx
mov dword [ebp - 0x978], eax
jmp 0x53710d
mov esi, dword [ebp - 0x970]
lea eax, [ebp - 0x96c]
push eax
push dword [ebp - 0x97c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x537002
test esi, esi
je 0x537159
mov edi, dword [ebp - 0x980]
lea eax, [ebp - 0x514]
push eax
push 0x104
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s
mov eax, dword [ebp - 0x978]
push eax
push 0x104
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscat_s
add esp, 0x18
push dword [ebp - 0x97c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00669a1e
mov esp, ebp
pop ebp
ret