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

Disassembly:
sub esp, 0x158
push ebx
mov ebx, dword [esp + 0x160]
push esi
push edi
mov esi, ecx
lea edi, [esp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], 0
call fcn.00401300
mov eax, edi
call fcn.00401660
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, edi
push ecx
mov ecx, esi
call edx
push 0x13e
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0040b980
mov ecx, dword [0x424d88]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
push 0x41fcfc
push 0x41fcfc
mov dword [esp + 0x14], ecx
call edi
push eax
mov eax, dword [esp + 0x18]
mov ebx, dword [eax - 8]
push eax
lea edx, [esp + 0x18]
push edx
call fcn.00402090
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esi - 0xc]
mov ebx, eax
mov dword [esp + 0x1c], ebx
cmp ecx, 0x424d78
je 0x4182d5
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4182d5
push esi
call fcn.0040b07a
add esp, 4
cmp ebx, 0xffffffff
jne 0x418315
mov eax, dword [esp + 0x10]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x418307
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418307
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040b07a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret 4
push ebp
jmp 0x418326
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
test byte [esp + 0x28], 0x10
je 0x4184d3
mov ebp, dword [0x424d88]
lea ecx, [esp + 0x54]
shr ecx, 0x10
mov dword [esp + 0x10], ebp
test ecx, ecx
jne 0x41835c
lea edx, [esp + 0x54]
movzx eax, dx
lea ecx, [esp + 0x10]
call fcn.00401dc0
mov ebp, dword [esp + 0x10]
jmp 0x4183a3
lea eax, [esp + 0x54]
push eax
call edi
mov esi, eax
test esi, esi
je 0x4183a3
lea ecx, [esi + 0xd]
push ecx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x4183a3
lea edx, [esi + 1]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ebp, [eax + 0xc]
cmp edx, esi
jb 0x4183a3
push esi
lea eax, [esp + 0x58]
push eax
push ebp
call fcn.0040b610
add esp, 0xc
mov ecx, 0x41fd00
mov eax, ebp
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4183d0
test dl, dl
je 0x4183cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4183d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4183b0
xor eax, eax
jmp 0x4183d5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4184af
mov ecx, 0x41fd04
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418404
test dl, dl
je 0x418400
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418404
add eax, 2
add ecx, 2
test dl, dl
jne 0x4183e4
xor eax, eax
jmp 0x418409
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4184af
mov ecx, dword [0x424d88]
push 0x41fd08
push 0x41fd08
mov dword [esp + 0x18], ecx
call edi
push eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax - 8]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00402090
mov ecx, dword [ebp - 8]
mov esi, dword [esp + 0x10]
mov eax, dword [0x424d88]
mov ebx, dword [esi - 8]
push ebp
push ecx
push esi
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], eax
call fcn.00402090
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
push edi
call fcn.00418220
add dword [esp + 0x18], eax
lea eax, [edi - 0xc]
cmp eax, 0x424d78
je 0x41848d
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41848d
push edi
call fcn.0040b07a
add esp, 4
lea ecx, [esi - 0xc]
cmp ecx, 0x424d78
je 0x4184af
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4184af
push esi
call fcn.0040b07a
add esp, 4
lea edx, [ebp - 0xc]
cmp edx, 0x424d78
je 0x4184de
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4184de
push esi
call fcn.0040b07a
add esp, 4
jmp 0x4184de
mov eax, dword [esp + 0x48]
shr eax, 0xa
add dword [esp + 0x18], eax
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x418320
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
pop ebp
cmp edx, 0x424d78
je 0x41852b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41852b
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0040b07a
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
add esp, 0x158
ret 4