Function at 0x402050
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4048c6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], ecx
cmp eax, ebx
je 0x40230f
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4020a0
sub eax, edx
je 0x40230f
mov eax, 0xf
xor edi, edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
push ebx
lea esi, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00401fb0
add esp, 4
test eax, eax
je 0x4021d7
push str..lnk
mov edx, esi
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004024c0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4020ff
mov eax, dword [eax]
lea ecx, [ebp - 0x1c4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x1c], 0x10
mov esi, eax
jb 0x402122
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp esi, 0xffffffff
je 0x4021d7
jmp 0x402140
mov eax, dword [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x198]
push ecx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
jne 0x40216f
lea edx, [ebp - 0x1c4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402140
jmp 0x4021d0
push 0x405674
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x84]
push ecx
mov edi, 1
call fcn.004024c0
add esp, 0xc
mov ecx, dword [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00401040
lea eax, [ebp - 0x198]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4021b4
mov ecx, dword [ebp - 0x1c8]
sub eax, edx
push eax
lea edx, [ebp - 0x198]
push edx
call fcn.004010f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x19
lea esi, [ebp - 0x4c]
call fcn.00401fb0
add esp, 4
test eax, eax
je 0x4022d8
push str..lnk
mov eax, esi
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004024c0
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x402208
mov eax, dword [eax]
lea edx, [ebp - 0x1c4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [ebp - 0x1c], 0x10
mov esi, eax
jb 0x40222b
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
cmp esi, 0xffffffff
je 0x4022d8
mov ecx, dword [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x198]
push edx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
jne 0x402270
lea eax, [ebp - 0x1c4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402241
jmp 0x4022d1
push 0x405674
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x84]
push edx
mov edi, 1
call fcn.004024c0
add esp, 0xc
mov ecx, dword [ebp - 0x1c8]
push eax
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call fcn.00401040
lea eax, [ebp - 0x198]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4022b5
mov ecx, dword [ebp - 0x1c8]
sub eax, edx
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.004010f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x38], 0x10
jb 0x4022eb
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x54], 0x10
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
jb 0x40230b
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
jmp 0x402311
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004034b4
mov esp, ebp
pop ebp
ret