Function at 0x40ca40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov dword [ebp - 0x54], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 0x50]
mov eax, 0x534590
call fcn.00524684
mov dword [esi + 0x1c], 1
lea edx, [ebp - 4]
lea eax, [ebp - 4]
call fcn.0052f058
inc dword [esi + 0x1c]
lea edi, [ebp - 0x194]
mov word [esi + 0x10], 8
push esi
mov esi, 0x531fe0
mov ecx, 0x50
lea edx, [ebp - 4]
rep movsd dword es:[edi], dword [esi]
pop esi
xor eax, eax
mov word [esi + 0x10], 0x14
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
inc dword [esi + 0x1c]
mov word [esi + 0x10], 8
call fcn.0052f364
cmp dword [ebp - 4], 0
je 0x40cabb
mov edx, dword [ebp - 4]
mov ebx, dword [edx - 4]
jmp 0x40cabd
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0052ef9c
add esp, 8
mov edx, dword [ebp - 4]
mov cl, byte [edx + ebx - 1]
movsx eax, cl
cmp eax, 0x5c
jne 0x40cb67
mov word [esi + 0x10], 0x20
lea edx, [ebp - 4]
lea eax, [ebp - 0xc]
call fcn.0052f058
inc dword [esi + 0x1c]
mov ecx, 1
mov edx, dword [eax]
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0052f334
mov word [esi + 0x10], 0x2c
mov edx, 0x53230d
lea eax, [ebp - 0x10]
call fcn.0052f020
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
inc dword [esi + 0x1c]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0052f38c
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.0052f364
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0052f334
lea ecx, [ebp - 0x194]
push ecx
cmp dword [ebp - 8], 0
je 0x40cb79
mov eax, dword [ebp - 8]
jmp 0x40cb7e
mov eax, 0x53230f
push eax
call sub.KERNEL32.DLL_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40cce6
test byte [ebp - 0x194], 0x10
je 0x40cc76
movsx eax, byte [ebp - 0x168]
cmp eax, 0x2e
jne 0x40cbce
cmp byte [ebp - 0x167], 0
je 0x40ccd1
movsx edx, byte [ebp - 0x167]
cmp edx, 0x2e
jne 0x40cbce
cmp byte [ebp - 0x166], 0
je 0x40ccd1
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x168]
push ecx
lea eax, [ebp - 0x18]
mov word [esi + 0x10], 0x38
call fcn.0052f020
inc dword [esi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
inc dword [esi + 0x1c]
call fcn.0052f38c
lea edx, [ebp - 0x1c]
push edx
mov edx, 0x532310
lea eax, [ebp - 0x20]
call fcn.0052f020
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x20]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x24]
pop eax
call fcn.0052f38c
lea edx, [ebp - 0x24]
mov ecx, dword [edx]
push ecx
call fcn.0040c70c
add esp, 8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0052f334
jmp 0x40ccd1
mov word [esi + 0x10], 0x44
lea edx, [ebp - 0x168]
lea eax, [ebp - 0x28]
call fcn.0052f020
inc dword [esi + 0x1c]
mov edx, eax
xor eax, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 4]
inc dword [esi + 0x1c]
call fcn.0052f38c
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov edi, dword [eax]
mov edx, dword [edx]
call dword [edi + 0x3c]
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0052f334
lea ecx, [ebp - 0x194]
push ecx
push ebx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40cb8f
push ebx
call sub.KERNEL32.DLL_FindClose
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0052f334
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0052f334
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret