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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ff66
mov eax, dword fs:[0]
push eax
sub esp, 0xcd4
mov eax, dword [0x496534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.0044f210
add esp, 0x18
call fcn.004350f7
push 0x104
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40c2bb
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push 0x4865ac
push eax
call esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00451ea9
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x4865e8
push eax
call esi
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xcdc], eax
cmp eax, 0xffffffff
je 0x40c2b9
mov eax, dword [ebx + 0x164]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0xcdc]
mov dword [ebp - 0xce0], eax
cmp dword [ebp - 0xa80], 0x10
jne 0x40c29a
lea eax, [ebp - 0xa54]
push eax
lea ecx, [ebp - 0xcd8]
call fcn.00401ff0
push 0x486438
lea ecx, [ebp - 0xcd4]
mov dword [ebp - 4], 0
call fcn.00401ff0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xcd8]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x40c2d7
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40c06f
push esi
lea ecx, [ebp - 0xcd8]
call fcn.00401cb0
mov eax, dword [ebp - 0xcd8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00456708
mov eax, dword [ebp - 0xcd8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40c2d7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0xcd8]
xor edi, edi
mov word [eax + esi*2], cx
cmp dword [ebp - 0xce0], ecx
jle 0x40c178
test edi, edi
js 0x40c2e1
cmp edi, dword [ebx + 0x164]
jge 0x40c2e1
mov eax, dword [ebx + 0x160]
lea ecx, [ebp - 0xcd4]
lea eax, [eax + edi*4]
push eax
call fcn.00402a50
mov eax, dword [ebp - 0xcd4]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x40c2d7
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40c105
push esi
lea ecx, [ebp - 0xcd4]
call fcn.00401cb0
mov eax, dword [ebp - 0xcd4]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00456708
mov eax, dword [ebp - 0xcd4]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40c2d7
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0xcd4]
mov word [eax + esi*2], cx
mov ecx, dword [ebp - 0xcd4]
test ecx, ecx
je 0x40c161
mov eax, dword [ebp - 0xcd8]
cmp dword [eax - 0xc], 0
jl 0x40c161
push ecx
push eax
call fcn.0044e917
add esp, 8
test eax, eax
je 0x40c161
sub eax, dword [ebp - 0xcd8]
sar eax, 1
cmp eax, 0xffffffff
jg 0x40c178
mov esi, dword [ebp - 0xce0]
inc edi
cmp edi, esi
jl 0x40c0a8
test esi, esi
jne 0x40c247
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0044f210
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.0044f210
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x4865ec
push 0xffffffffffffffff
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00409310
add esp, 0x30
lea eax, [ebp - 0xcd0]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c247
lea eax, [ebp - 0xca4]
push eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x486604
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00409310
add esp, 0x1c
lea eax, [ebp - 0x830]
lea ecx, [ebx + 0x148]
push eax
push dword [ebx + 0x150]
call fcn.0043e07b
lea eax, [ebp - 0xcd0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c1e2
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call edi
jmp 0x40c24d
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0xcd4]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c26f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0xcd8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c294
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xcdc]
lea eax, [ebp - 0xa80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c001
push esi
call edi
mov edi, dword [ebx + 0x150]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ae75
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401e60
call fcn.0043340a
int3