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

Disassembly:
push 0xffffffffffffffff
push 0x51e632
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov esi, dword [esp + 0x310]
mov edi, dword [esp + 0x314]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
jne 0x4185c2
xor eax, eax
jmp 0x4189f4
cmp edi, ebx
je 0x4185bb
mov ebp, 7
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xa8], ebp
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4185f0
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x98]
call fcn.004021f0
push 3
push 0x5614b0
mov ecx, esi
mov dword [esp + 0x310], ebx
call fcn.00401d70
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov byte [esp + 0x308], 1
mov eax, edi
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418650
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x7c]
call fcn.004021f0
mov eax, esi
push eax
mov byte [esp + 0x30c], 2
call fcn.0040d530
add esp, 4
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x308], 3
mov ecx, dword [esp + 0x78]
mov esi, 8
cmp dword [esp + 0x8c], esi
jae 0x4186a7
lea ecx, [esp + 0x78]
lea edx, [esp + 0x1c]
push edx
mov edx, 0x561f88
call fcn.0040de20
mov eax, dword [esp + 0x98]
add esp, 4
cmp dword [esp + 0xa8], esi
jae 0x4186d0
lea eax, [esp + 0x94]
lea ecx, [esp + 0xac]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x418947
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x418947
cmp word [esp + 0xd8], 0x2e
je 0x4186ec
mov ax, word [esp + 0xda]
cmp ax, bx
je 0x4186ec
cmp ax, 0x2e
jne 0x41872f
cmp word [esp + 0xdc], bx
je 0x4186ec
lea eax, [esp + 0xd8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418740
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xdc]
push ecx
lea esi, [esp + 0x60]
call fcn.004021f0
test byte [esp + 0xac], 0x10
je 0x4186ec
mov edx, esi
push edx
call fcn.0040d530
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 4
cmp esi, eax
jbe 0x41878b
call fcn.0042f021
mov eax, dword [esp + 0x24]
mov ebp, esi
lea ecx, [ecx]
cmp dword [esp + 0x20], eax
mov esi, eax
jbe 0x4187a1
call fcn.0042f021
mov eax, dword [esp + 0x24]
cmp ebp, esi
je 0x418880
cmp ebp, eax
jb 0x4187b2
call fcn.0042f021
mov edi, 8
cmp dword [ebp + 0x18], edi
jb 0x4187c1
mov edx, dword [ebp + 4]
jmp 0x4187c4
lea edx, [ebp + 4]
mov eax, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4187e0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x44]
call fcn.004021f0
mov byte [esp + 0x308], 4
cmp dword [esp + 0x70], edi
mov eax, dword [esp + 0x5c]
jae 0x418810
lea eax, [esp + 0x5c]
mov edi, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x40]
call fcn.00404b00
test eax, eax
mov byte [esp + 0x308], 3
je 0x41885b
cmp dword [esp + 0x54], 8
jb 0x418842
mov eax, dword [esp + 0x40]
push eax
call fcn.0042eca7
add esp, 4
mov eax, dword [esp + 0x24]
cmp ebp, eax
jb 0x418853
call fcn.0042f021
mov eax, dword [esp + 0x24]
add ebp, 0x1c
jmp 0x418790
cmp dword [esp + 0x54], 8
mov dword [esp + 0x18], 1
jb 0x4186ec
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042eca7
add esp, 4
jmp 0x4186ec
cmp dword [esp + 0x18], ebx
jne 0x4186ec
mov esi, dword [esp + 0x38]
mov eax, esi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4188a4
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x44]
call fcn.004021f0
push ebx
lea edx, [esp + 0x5c]
push edx
or eax, 0xffffffff
mov byte [esp + 0x310], 5
call fcn.00401bd0
push 1
push str._.
mov ecx, esi
call fcn.00401d70
mov eax, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x4188f5
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push eax
call fcn.00418560
cmp eax, ebx
jne 0x41892c
mov byte [esp + 0x308], 3
cmp dword [esp + 0x54], esi
jb 0x4186ec
mov edx, dword [esp + 0x40]
push edx
call fcn.0042eca7
add esp, 4
jmp 0x4186ec
cmp dword [esp + 0x54], esi
mov dword [esp + 0x18], 1
jb 0x418947
mov eax, dword [esp + 0x40]
push eax
call fcn.0042eca7
add esp, 4
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x418978
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
push edx
call fcn.00405120
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.0042eca7
add esp, 4
mov esi, 8
cmp dword [esp + 0x8c], esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
jb 0x41899f
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x70], esi
mov edi, 7
mov dword [esp + 0x8c], edi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], bx
jb 0x4189ca
mov edx, dword [esp + 0x5c]
push edx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0xa8], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x4189f0
mov eax, dword [esp + 0x94]
push eax
call fcn.0042eca7
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0042eb95
add esp, 0x2f8
ret 8