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

Disassembly:
push 0xffffffffffffffff
push 0x51cb52
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x569338]
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 0x4173a2
xor eax, eax
jmp 0x4177b1
cmp edi, ebx
je 0x41739b
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 0x4173d0
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x98]
call fcn.004021f0
push 3
push 0x560434
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 0x417430
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x7c]
call fcn.004021f0
mov edi, esi
mov byte [esp + 0x308], 2
call fcn.0040cd20
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 0x417483
lea ecx, [esp + 0x78]
lea eax, [esp + 0x1c]
push eax
mov edx, 0x560f28
call fcn.0040d4f0
mov eax, dword [esp + 0x98]
add esp, 4
cmp dword [esp + 0xa8], esi
jae 0x4174ac
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 0x417704
mov eax, dword [esp + 0x30]
lea edx, [esp + 0xac]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
je 0x417704
cmp word [esp + 0xd8], 0x2e
je 0x4174c8
mov ax, word [esp + 0xda]
cmp ax, bx
je 0x4174c8
cmp ax, 0x2e
jne 0x41750b
cmp word [esp + 0xdc], bx
je 0x4174c8
lea eax, [esp + 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417515
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 0x4174c8
mov edi, esi
call fcn.0040cd20
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
jbe 0x41755c
call fcn.0042d45a
mov eax, dword [esp + 0x24]
mov ebp, esi
mov edi, edi
cmp dword [esp + 0x20], eax
mov esi, eax
jbe 0x417571
call fcn.0042d45a
mov eax, dword [esp + 0x24]
cmp ebp, esi
je 0x41763d
cmp ebp, eax
jb 0x417582
call fcn.0042d45a
mov edi, 8
cmp dword [ebp + 0x18], edi
jb 0x417591
mov edx, dword [ebp + 4]
jmp 0x417594
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 0x4175b0
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 0x4175e0
lea eax, [esp + 0x5c]
mov edi, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x40]
call fcn.00404930
test eax, eax
mov byte [esp + 0x308], 3
je 0x41762b
cmp dword [esp + 0x54], 8
jb 0x417612
mov edx, dword [esp + 0x40]
push edx
call fcn.0042d197
add esp, 4
mov eax, dword [esp + 0x24]
cmp ebp, eax
jb 0x417623
call fcn.0042d45a
mov eax, dword [esp + 0x24]
add ebp, 0x1c
jmp 0x417560
cmp dword [esp + 0x54], 8
mov dword [esp + 0x18], 1
jmp 0x4176d1
cmp dword [esp + 0x18], ebx
jne 0x4174c8
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 0x417661
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x44]
call fcn.004021f0
push ebx
lea ecx, [esp + 0x5c]
push ecx
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 0x4176b2
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push edx
push eax
call fcn.00417340
cmp eax, ebx
jne 0x4176e9
mov byte [esp + 0x308], 3
cmp dword [esp + 0x54], esi
jb 0x4174c8
mov eax, dword [esp + 0x40]
push eax
call fcn.0042d197
add esp, 4
jmp 0x4174c8
cmp dword [esp + 0x54], esi
mov dword [esp + 0x18], 1
jb 0x417704
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0042d197
add esp, 4
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x417735
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
push ecx
call fcn.00404f50
mov edx, dword [esp + 0x24]
add esp, 4
push edx
call fcn.0042d197
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 0x41775c
mov eax, dword [esp + 0x78]
push eax
call fcn.0042d197
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 0x417787
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0xa8], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
jb 0x4177ad
mov edx, dword [esp + 0x94]
push edx
call fcn.0042d197
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.0042d085
add esp, 0x2f8
ret 8