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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4613e1
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x6e107c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4b0], ebx
mov dword [ebp - 0x4ac], ebx
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 4], ebx
cmp dword [0x6e1c08], ebx
jne 0x40114f
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4010df
lea ecx, [ebp - 0x4b0]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, ecx
je 0x4012b1
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x4012b1
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x4010f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4010f0
sub eax, edx
sar eax, 1
mov edi, eax
lea eax, [ebp - 0x218]
call fcn.0045a9b0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401115
sub eax, edx
sar eax, 1
movzx edx, word [ebp + eax*2 - 0x21a]
push edx
push 0x464060
call fcn.0045bb0b
add esp, 8
test eax, eax
jne 0x40114f
push 1
mov eax, 0x464060
mov ecx, 0x6e1bf8
call fcn.0045a450
lea eax, [ebp - 0x234]
push 0x464064
push eax
call fcn.0045b260
add esp, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x40117c
lea eax, [ebp - 0x234]
lea ecx, [ebp - 0x4a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40127f
cmp edi, ebx
je 0x40127f
lea ecx, [ecx]
test byte [ebp - 0x4a0], 0x10
jne 0x4011ee
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.0045b260
add esp, 8
mov ecx, eax
lea ebx, [ebp - 0x4b0]
mov byte [ebp - 4], 2
call fcn.0045a160
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
jb 0x4011ec
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0045bb6c
add esp, 4
xor ebx, ebx
lea edx, [ebp - 0x4a0]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4011a0
lea eax, [ebp - 0x4b0]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x401230
mov ecx, dword [ebp - 0x4b0]
mov edx, dword [ebp - 0x4ac]
mov eax, dword [ebp - 0x4a8]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
xor edi, edi
jmp 0x40123c
mov edi, dword [ebp - 0x4ac]
mov ebx, dword [ebp - 0x4b0]
cmp dword [ebp - 0x220], 8
jb 0x401254
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0045bb6c
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], dx
test ebx, ebx
je 0x4012b1
mov eax, ebx
call fcn.0045acf0
push ebx
jmp 0x4012a9
lea eax, [ebp - 0x4b0]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x401299
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp dword [ebp - 0x220], 8
jb 0x4012b1
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0045bb6c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b526
mov esp, ebp
pop ebp
ret