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

Disassembly:
mov eax, 0x42f3e8
call fcn.00417a2c
sub esp, 0x77c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov esi, ecx
je 0x40f666
push 0x43a37c
push ebx
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
jne 0x40f631
push 0x439f28
push ebx
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
je 0x40f666
cmp dword [esi + 0x10c], 0
je 0x40f666
mov eax, dword [esi + 0x108]
push ebx
mov eax, dword [eax]
lea edi, [eax + 8]
call fcn.004179b0
pop ecx
push eax
push ebx
push dword [edi + 8]
mov ecx, edi
push 0
call fcn.00406450
test eax, eax
jne 0x40f666
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
je 0x40f6c9
mov eax, dword [ebp + 0xc]
test ebx, ebx
mov dword [esi + 4], eax
je 0x40f6dd
push 0x43a37c
push ebx
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
jne 0x40f692
push 0x439f28
push ebx
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
je 0x40f6dd
cmp dword [esi + 0x10c], 0
je 0x40f6dd
mov eax, dword [esi + 0x108]
push ebx
mov eax, dword [eax]
lea edi, [eax + 8]
call fcn.004179b0
pop ecx
push eax
push ebx
push dword [edi + 8]
mov ecx, edi
push 0
call fcn.00406450
test eax, eax
jne 0x40f6dd
mov eax, dword [esi]
push dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 8]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
lea ecx, [esi + 0xf8]
call fcn.00410937
lea ecx, [esi + 0x104]
call fcn.00410937
lea ecx, [esi + 0xec]
call fcn.00410937
lea ecx, [esi + 0x110]
call fcn.00410937
lea ecx, [esi + 0x11c]
call fcn.00410937
cmp dword [ebp + 0x10], 0
je 0x40f729
push dword [ebp + 0x10]
call fcn.004179b0
pop ecx
push eax
push dword [ebp + 0x10]
jmp 0x40f737
mov edi, 0x441334
push edi
call fcn.004179b0
pop ecx
push eax
push edi
lea ecx, [esi + 0x138]
call fcn.004062f0
mov eax, dword [esi + 0xe0]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [ebp - 0x20], ecx
je 0x40f7a9
mov edi, 0x4312e0
mov eax, dword [ecx + 0x10]
mov edx, edi
test eax, eax
je 0x40f761
mov edx, eax
mov eax, dword [ecx + 0x1c]
add eax, 0x34
mov eax, dword [eax + 4]
test eax, eax
jne 0x40f770
mov eax, edi
push edx
push eax
push str.Deleting__s_for_key__s_n
push 0x441540
call fcn.004089c5
mov eax, dword [ebp - 0x20]
add esp, 0x10
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x40f794
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x20]
call fcn.00410c26
mov eax, dword [esi + 0xe0]
mov ecx, dword [ebp - 0x20]
cmp ecx, eax
jne 0x40f756
lea ecx, [esi + 0xdc]
call fcn.00410bd1
mov al, byte [0x441334]
push 0x40
mov byte [ebp - 0x33c], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x33b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x104
lea eax, [ebp - 0x33c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40fa55
push 0x43a37c
push edi
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
jne 0x40fa0b
push 0x439f28
push edi
call fcn.00418b0f
pop ecx
test eax, eax
pop ecx
jne 0x40fa0b
mov dl, byte [0x441334]
push 0x40
pop ecx
lea edi, [ebp - 0x133]
mov byte [ebp - 0x134], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x237]
mov byte [ebp - 0x238], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x238]
push ebx
push eax
push 0
call fcn.00412bc9
add esp, 0xc
lea eax, [ebp - 0x238]
mov edi, 0x43951c
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x134]
push edi
push eax
call fcn.004168c1
lea eax, [ebp - 0x134]
push eax
call fcn.0040f1bb
add esp, 0x14
test eax, eax
je 0x40f8e4
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
lea eax, [ebp - 0x134]
push eax
call fcn.004179b0
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062f0
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x104]
push 1
lea edx, [ebp - 0x1c]
mov eax, dword [eax]
pop edi
push edx
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], edi
push eax
call fcn.00406540
or dword [ebp - 4], 0xffffffff
push edi
lea ecx, [ebp - 0x1c]
jmp 0x40fa01
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x134]
push edi
push eax
call fcn.004168c1
lea eax, [ebp - 0x134]
push eax
call fcn.0040f1bb
add esp, 0x14
test eax, eax
je 0x40f97a
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
lea eax, [ebp - 0x134]
push eax
call fcn.004179b0
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062f0
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x104]
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], 2
mov eax, dword [eax]
push edx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406540
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
jmp 0x40fa01
push dword [ebp + 8]
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x134]
push edi
push eax
call fcn.004168c1
lea eax, [ebp - 0x134]
push eax
call fcn.0040f1bb
add esp, 0x14
test eax, eax
je 0x40fb89
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
lea eax, [ebp - 0x134]
push eax
call fcn.004179b0
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004062f0
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x104]
lea edx, [ebp - 0x1c]
mov dword [ebp - 4], 3
mov eax, dword [eax]
push edx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406540
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
call fcn.00402820
jmp 0x40fb89
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], al
call fcn.00402820
push edi
call fcn.004179b0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.004062f0
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x104]
and dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00406540
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
jmp 0x40fa01
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x788]
push str._shp_ins__.dat
push eax
call fcn.004168c1
add esp, 0xc
lea eax, [ebp - 0x684]
push eax
lea eax, [ebp - 0x788]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40fb89
test byte [ebp - 0x684], 0x10
jne 0x40fb68
mov al, byte [0x441334]
push 0x40
mov byte [ebp - 0x544], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x543]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x544]
push 0x43951c
push eax
call fcn.004168c1
mov al, byte [0x441334]
add esp, 0x10
mov byte [ebp - 0x440], al
xor eax, eax
push 0x40
lea edi, [ebp - 0x43f]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x440]
push 0
push eax
lea eax, [ebp - 0x544]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [ebp + 0xb]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.00402820
lea eax, [ebp - 0x440]
push eax
call fcn.004179b0
pop ecx
push eax
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x30]
call fcn.004062f0
mov eax, dword [esi + 0x108]
lea ecx, [esi + 0x104]
lea edx, [ebp - 0x30]
mov dword [ebp - 4], 4
push edx
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00406540
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
call fcn.00402820
lea eax, [ebp - 0x684]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40fa90
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp + 0xc], 1
je 0x40f6c9
mov eax, dword [esi]
push dword [ebp + 0x14]
mov ecx, esi
call dword [eax + 8]
jmp 0x40f6cc