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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42d97e
mov eax, dword fs:[0]
push eax
sub esp, 0x4cc
mov eax, dword [0x43a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x488], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x490], esi
mov dword [ebp - 0x48c], 0
push eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
push 0x4354f8
mov word [esi], ax
call fcn.0040c560
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x48c], 1
call fcn.004195c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push str.Microsoft
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
jne 0x40cd49
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 7
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c560
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x40c87c
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40c855
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40c84b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
mov eax, edx
push ecx
push eax
call fcn.00417807
add esp, 8
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
jmp 0x40c8bc
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40c8bc
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c8b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
push edx
push ecx
call fcn.00417807
add esp, 8
mov edx, dword [esi + 0x10]
test edx, edx
je 0x40cd49
cmp dword [esi + 0x14], 8
lea eax, [edx + edx]
jb 0x40c8de
mov ecx, dword [esi]
add ecx, eax
mov eax, dword [esi]
mov dword [ebp - 0x484], eax
jmp 0x40c8e7
lea ecx, [eax + esi]
mov dword [ebp - 0x484], esi
mov eax, ecx
cmp ecx, dword [ebp - 0x484]
je 0x40cbc7
cmp word [eax - 2], 0x5c
je 0x40cbc7
push 1
xor eax, eax
mov dword [ebp - 0x4d8], 0
push 0x434f10
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 0x4c8], 0
mov dword [ebp - 0x4c4], 7
mov word [ebp - 0x4d8], ax
call fcn.0040c560
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40c94a
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push ecx
lea ecx, [ebp - 0x4d8]
call fcn.0040b7c0
mov dword [ebp - 0x230], 0
xor ecx, ecx
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x48c], 3
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x220], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
push str.Dispatcher
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a8]
call fcn.0040aa20
push str..bin
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c0]
call fcn.0040aa20
add esp, 8
mov dword [ebp - 0x488], eax
cmp esi, eax
je 0x40ca62
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x40ca32
mov ecx, dword [esi]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x40ca22
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x484], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x40ce84
mov ecx, dword [ebp - 0x484]
push edx
push ecx
call fcn.00417807
mov eax, dword [ebp - 0x488]
add esp, 8
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], cx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x4ac]
cmp edx, 8
jb 0x40caa2
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca98
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
push edx
push ecx
call fcn.00417807
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x494]
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 7
mov word [ebp - 0x4c0], ax
cmp edx, 8
jb 0x40cb03
mov ecx, dword [ebp - 0x4a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40caf9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
push edx
push ecx
call fcn.00417807
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
cmp edx, 8
jb 0x40cb64
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
push edx
push ecx
call fcn.00417807
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x4c4]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x40cd49
mov ecx, dword [ebp - 0x4d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
jmp 0x40cd3f
mov eax, 0x7ffffffe
sub eax, edx
cmp eax, 0xa
jb 0x40ce89
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40cbe1
mov eax, dword [esi]
push 0xa
push str.Dispatcher
push edx
push eax
push ecx
push dword [ebp - 0x490]
lea ecx, [ebp - 0x4c0]
call fcn.0040b6b0
mov dword [ebp - 0x48c], 5
push str..bin
lea edx, [ebp - 0x4c0]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x4a8]
call fcn.0040aa20
add esp, 4
mov dword [ebp - 0x484], eax
cmp esi, eax
je 0x40cca9
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x40cc79
mov ecx, dword [esi]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x40cc69
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x488], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x40ce8e
mov ecx, dword [ebp - 0x488]
push edx
push ecx
call fcn.00417807
mov eax, dword [ebp - 0x484]
add esp, 8
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], cx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x494]
cmp edx, 8
jb 0x40cce9
mov ecx, dword [ebp - 0x4a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ccdf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce8e
push edx
push ecx
call fcn.00417807
add esp, 8
xor eax, eax
mov dword [ebp - 0x498], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x4ac]
mov dword [ebp - 0x494], 7
mov word [ebp - 0x4a8], ax
cmp edx, 8
jb 0x40cd49
mov ecx, dword [ebp - 0x4c0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cd3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce8e
push edx
push ecx
call fcn.00417807
add esp, 8
mov edx, dword [edi + 4]
push ecx
mov ecx, dword [edi]
call fcn.0040b220
mov eax, dword [edi]
add esp, 4
mov dword [edi + 4], eax
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40cd66
mov eax, dword [esi]
lea ecx, [ebp - 0x480]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x484], eax
cmp eax, 0xffffffff
je 0x40ce67
xor eax, eax
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cdb3
sub ecx, edx
lea eax, [ebp - 0x454]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0040c560
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x230]
mov eax, dword [edi + 4]
push ecx
cmp eax, dword [edi + 8]
je 0x40cdf8
mov ecx, eax
call fcn.0040a240
add dword [edi + 4], 0x18
jmp 0x40ce00
push eax
mov ecx, edi
call fcn.0040ac20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x40ce40
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ce84
push edx
push ecx
call fcn.00417807
add esp, 8
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40cd83
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004177f9
mov esp, ebp
pop ebp
ret
call fcn.0041af8c
call fcn.0040c400
call fcn.0041af8c
int3