Function at 0x40c130
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f0
mov eax, dword [0x43a004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xorps xmm0, xmm0
mov dword [ebp - 0x6e4], edx
push 0x258
mov dword [ebp - 0x6d8], ecx
mov dword [ebp - 0x6c8], edi
mov dword [ebp - 0x6c0], ebx
mov dword [ebp - 0x6c4], ebx
mov dword [ebp - 0x6e0], ebx
movlpd qword [ebp - 0x6ec], xmm0
call fcn.0041f424
add esp, 4
mov dword [ebp - 0x6cc], eax
test eax, eax
je 0x40c468
mov dword [eax + 0x250], ebx
mov esi, eax
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x6d8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6dc], eax
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x6e8]
mov dword [ebp - 0x6d4], eax
mov eax, dword [ebp - 0x6ec]
mov dword [ebp - 0x6d0], eax
je 0x40c3f4
mov ecx, dword [edi + 0x34]
mov eax, ecx
and eax, dword [edi + 0x30]
and ecx, dword [ebp - 0x464]
cmp ecx, eax
jne 0x40c3cd
push 0x258
call fcn.0041f424
lea ebx, [esi + 0x254]
add esp, 4
mov dword [ebx], eax
mov dword [ebp - 0x6e8], ebx
test eax, eax
je 0x40c44b
mov ecx, 0x94
lea esi, [ebp - 0x464]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x6c8]
cmp dword [edi + 0x10], 0
je 0x40c249
mov eax, dword [ebx]
add eax, 0x234
push eax
call fcn.004218b0
mov eax, dword [ebx]
add esp, 4
add eax, 0x2c
push eax
call fcn.004218b0
add esp, 4
mov eax, dword [ebx]
mov dword [eax + 0x250], 0
cmp dword [edi + 0x14], 0
je 0x40c383
cmp dword [edi + 0x2c], 0
je 0x40c383
mov eax, dword [0x44188c]
test eax, eax
jne 0x40c2ba
push str.FindFirstStreamW
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.FindNextStreamW
push str.kernel32
mov dword [0x44188c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov ecx, eax
mov eax, dword [0x44188c]
mov dword [0x441888], ecx
test eax, eax
je 0x40c383
jmp 0x40c2c0
mov ecx, dword [0x441888]
test ecx, ecx
je 0x40c383
push 0
lea ecx, [ebp - 0x6bc]
push ecx
push 0
lea ecx, [ebp - 0x438]
push ecx
call eax
mov esi, eax
mov dword [ebp - 0x6f0], esi
cmp esi, 0xffffffff
je 0x40c383
mov ebx, dword [ebx]
lea eax, [ebp - 0x6bc]
push eax
push esi
add ebx, 0x250
call dword [0x441888]
test eax, eax
je 0x40c370
nop word [eax + eax]
push 0x260
call fcn.0041f424
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x40c427
mov ecx, 0x96
lea esi, [ebp - 0x6bc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x6c8]
cmp dword [edi + 0x10], 0
je 0x40c350
mov eax, dword [ebx]
add eax, 8
push eax
call fcn.004218b0
add esp, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x6bc]
mov esi, dword [ebp - 0x6f0]
add ebx, 0x258
push eax
push esi
call dword [0x441888]
test eax, eax
jne 0x40c310
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x6e8]
mov esi, dword [ebx]
mov ebx, dword [ebp - 0x6c0]
inc ebx
test byte [ebp - 0x464], 0x10
mov dword [ebp - 0x6c0], ebx
je 0x40c3a3
inc dword [ebp - 0x6e0]
jmp 0x40c3cd
mov eax, dword [ebp - 0x6d0]
inc dword [ebp - 0x6c4]
add eax, dword [ebp - 0x444]
mov dword [ebp - 0x6d0], eax
mov eax, dword [ebp - 0x6d4]
adc eax, dword [ebp - 0x448]
mov dword [ebp - 0x6d4], eax
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x6dc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c1d7
push dword [ebp - 0x6dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebx*4]
mov dword [esi + 0x254], 0
push eax
call fcn.0041f424
mov edi, eax
add esp, 4
test edi, edi
jne 0x40c47e
mov ecx, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6c0]
call fcn.0040c0d0
jmp 0x40c468
mov ecx, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6c0]
call fcn.0040c0d0
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
push dword [ebp - 0x6dc]
call ebx
jmp 0x40c468
mov ecx, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6c0]
call fcn.0040c0d0
push dword [ebp - 0x6dc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x6cc]
xor esi, esi
add eax, 0x254
mov dword [ebp - 0x6c0], esi
xor edx, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x40c4b9
nop dword [eax]
mov dword [edi + esi*4], ecx
inc esi
mov eax, dword [eax]
mov edx, esi
add eax, 0x254
mov dword [ebp - 0x6c0], esi
mov ecx, dword [eax]
test ecx, ecx
jne 0x40c4a0
mov eax, dword [ebp - 0x6c8]
cmp word [eax + 0x50], 0
jle 0x40c4dd
push eax
lea eax, [edx - 1]
mov ecx, edi
push eax
xor edx, edx
call fcn.0040c030
mov eax, dword [ebp - 0x6c8]
add esp, 8
mov ecx, dword [ebp - 0x6e4]
xor edx, edx
push eax
push dword [ebp - 0x6d8]
movzx ebx, word [ecx - 2]
mov word [ecx - 2], dx
mov edx, esi
mov ecx, edi
call fcn.0040bc10
mov esi, dword [ebp - 0x6c8]
add esp, 8
cmp dword [esi + 0x20], 0
je 0x40c535
mov edx, dword [ebp - 0x6c4]
mov ecx, dword [ebp - 0x6d8]
push 0
push esi
push dword [ebp - 0x6d4]
push dword [ebp - 0x6d0]
push dword [ebp - 0x6e0]
call fcn.0040b430
add esp, 0x14
mov eax, dword [ebp - 0x6e4]
push edi
mov word [eax - 2], bx
call fcn.0041f3e5
mov ecx, dword [ebp - 0x6cc]
lea edx, [ebp - 0x6c0]
add esp, 4
call fcn.0040c0d0
cmp dword [0x43bbe4], 0
jne 0x40c468
mov eax, dword [ebp - 0x6e0]
add dword [0x441890], eax
mov eax, dword [ebp - 0x6c4]
add dword [0x441894], eax
mov eax, dword [ebp - 0x6d0]
add dword [0x441898], eax
mov eax, dword [ebp - 0x6d4]
adc dword [0x44189c], eax
cmp dword [esi + 0x20], 0
je 0x40c743
mov eax, dword [ebp - 0x6d8]
mov ebx, dword [ebp - 0x6e4]
sub ebx, eax
and ebx, 0xfffffffe
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x6e8], ebx
push eax
call fcn.0041ec00
add esp, 0xc
lea edi, [ebp - 0x214]
add edi, ebx
lea eax, [ebp - 0x464]
mov dword [ebp - 0x6f0], edi
push eax
lea eax, [ebp - 0x214]
mov dword [edi], 0x2e002a
push eax
mov dword [edi + 4], 0x2a
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x6c4], esi
cmp esi, 0xffffffff
je 0x40c73c
nop dword [eax + eax]
cmp word [ebp - 0x438], 0x2e
jne 0x40c63e
mov cx, word [ebp - 0x436]
test cx, cx
je 0x40c726
cmp cx, 0x2e
jne 0x40c63e
cmp word [ebp - 0x434], 0
je 0x40c726
test byte [ebp - 0x464], 0x10
je 0x40c726
push ebx
push dword [ebp - 0x6d8]
lea eax, [ebp - 0x214]
push eax
call fcn.0041ec00
lea eax, [ebp - 0x438]
mov edx, edi
mov ecx, eax
add esp, 0xc
sub edx, ecx
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x40c670
lea edi, [ebp - 0x214]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40c690
mov eax, dword [0x437300]
lea ecx, [ebp - 0x214]
mov dword [edi], eax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c6b0
sub ecx, edx
lea ebx, [ebp - 0x214]
mov edx, dword [ebp - 0x6e4]
mov esi, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40c6d0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40c6e0
mov ecx, edx
shr ecx, 2
push dword [ebp - 0x6c8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x214]
call fcn.0040c130
add esp, 4
test eax, eax
jne 0x40c756
mov ebx, dword [ebp - 0x6e8]
mov esi, dword [ebp - 0x6c4]
mov edi, dword [ebp - 0x6f0]
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c610
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d22b
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x6c4]
jmp 0x40c462