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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x990
mov eax, dword [0x55d3e4]
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 fcn.004bc5f0
push 0x208
lea eax, [ebp - 0x71c]
push 0
push eax
call fcn.004bc5f0
push 0x208
lea eax, [ebp - 0x30c]
push 0
push eax
call fcn.004bc5f0
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.00422300
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 0x4a2720
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 0x4a295d
push str.WinSxS_
lea eax, [ebp - 0x514]
push 0x104
push eax
call fcn.004e8a86
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x514]
push eax
push str._s_s
lea eax, [ebp - 0x71c]
push 0x104
push eax
call fcn.00422300
lea eax, [ebp - 0x30c]
push 0x104
push eax
call fcn.004c7b6f
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 0x4a2948
test byte [ebp - 0x96c], 0x10
je 0x4a28d7
lea eax, [ebp - 0x940]
push 0x104
push eax
call fcn.004c7b6f
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x940]
push eax
call fcn.004bd5e3
add esp, 0x10
test eax, eax
je 0x4a28d7
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004bc5f0
lea esi, [ebp - 0x93e]
lea esi, [esi + edi*2]
push 0x5f
push esi
call fcn.004bc9a8
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 fcn.004e89c4
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 0x4a2864
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.004a25f0
movzx ecx, word [ebp - 0x984]
add esp, 8
cmp ecx, ebx
jb 0x4a28d7
movzx eax, word [ebp - 0x982]
jne 0x4a28b6
cmp eax, dword [ebp - 0x974]
jb 0x4a28d7
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 0x4a28dd
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 0x4a27d2
test esi, esi
je 0x4a2929
mov edi, dword [ebp - 0x980]
lea eax, [ebp - 0x514]
push eax
push 0x104
push edi
call fcn.004c784d
mov eax, dword [ebp - 0x978]
push eax
push 0x104
push edi
call fcn.004e8a86
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.00475dd9
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.00475dd9
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.00475dd9
mov esp, ebp
pop ebp
ret