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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b1c6
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2ac], edi
cmp dword [ebx + 0x1a30], 0
mov dword [ebp - 0x298], eax
je 0x415873
xor eax, eax
jmp 0x415db1
push edi
call fcn.00415800
add esp, 4
mov dword [ebp - 0x290], eax
mov ecx, ebx
lea esi, [edi + eax*2]
push esi
call fcn.004157c0
mov ecx, dword [ebx]
push esi
test eax, eax
je 0x4158ad
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
mov eax, 1
jmp 0x415db1
mov esi, dword [ecx + 0x40]
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
push 0x20
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0
call fcn.00428aa3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
push eax
push 0x10
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b0], 8
mov dword [ebp - 0x2cc], 0x3f800000
call fcn.0041a320
cmp dword [ebx + 0x9b08], 0
mov dword [ebp - 4], 2
jne 0x415982
cmp dword [ebx + 0x9b0c], 0
jne 0x415982
push dword [ebp - 0x290]
lea eax, [ebp - 0x2cc]
push eax
push edi
push ebx
call fcn.00418e20
add esp, 0x10
test eax, eax
je 0x41598c
mov dword [ebp - 0x29c], 1
push 0x482258
push edi
mov esi, 1
mov dword [ebp - 0x294], 0xffffffff
call fcn.00413d50
add esp, 8
mov dword [ebp - 0x290], eax
test eax, eax
je 0x4159d5
lea ecx, [ebp - 0x28c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push dword [ebp - 0x290]
mov dword [ebp - 0x294], eax
call fcn.00428a5e
add esp, 4
cmp dword [ebx + 0x1a30], 0
jne 0x415d8f
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x294]
cmp eax, 0xffffffff
je 0x415d99
test esi, esi
je 0x415d95
mov eax, dword [ebp - 0x28c]
test al, 0x10
je 0x415ab2
test eax, 0x400
je 0x415a32
mov eax, dword [ebp - 0x268]
and eax, 0xffff0fff
cmp eax, 0x9000001a
jne 0x415d6d
lea eax, [ebp - 0x260]
push 0x482260
push eax
call fcn.00431b76
add esp, 8
test eax, eax
je 0x415d6d
lea eax, [ebp - 0x260]
push 0x482264
push eax
call fcn.00431b76
add esp, 8
test eax, eax
je 0x415d6d
lea eax, [ebp - 0x260]
push eax
push edi
call fcn.00413d50
mov esi, eax
add esp, 8
test esi, esi
je 0x415d6d
push dword [ebp - 0x298]
push esi
push ebx
call fcn.00415820
mov ecx, dword [ebp - 0x29c]
test eax, eax
mov eax, 1
cmovne ecx, eax
push esi
mov dword [ebp - 0x29c], ecx
call fcn.00428a5e
jmp 0x415d6a
lea eax, [ebp - 0x260]
push 0x48226c
push eax
call fcn.0040dc80
add esp, 8
test al, al
je 0x415ae6
lea eax, [ebp - 0x260]
push str..TBD
push eax
call fcn.0040db00
add esp, 8
test al, al
jne 0x415d6d
cmp dword [ebx + 0x9b08], 0
jne 0x415d56
cmp dword [ebx + 0x9b0c], 0
jne 0x415d56
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x14], 7
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b20
sub ecx, edx
lea eax, [ebp - 0x260]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00402bd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, esi
push eax
call fcn.00414570
add esp, 8
lea ecx, [ebp - 0x2cc]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.00414470
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x2a0], ecx
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x290], ecx
cmp eax, 8
jb 0x415bc6
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x415bb6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415dcd
push ecx
push esi
call fcn.00428a50
mov ecx, dword [ebp - 0x290]
add esp, 8
cmp ecx, dword [ebp - 0x2a0]
jne 0x415d6d
lea eax, [ebp - 0x260]
push eax
push edi
call fcn.00413d50
mov esi, eax
add esp, 8
mov dword [ebp - 0x290], esi
test esi, esi
je 0x415d6d
push edi
call fcn.00415800
add esp, 4
mov dword [ebp - 0x2a0], 0x3f
cmp dword [ebx + 0x9ad0], 0
mov edx, eax
je 0x415d28
cmp dword [ebp - 0x298], 0xffffffff
je 0x415d28
mov ecx, esi
mov dword [ebp - 0x2a8], 0
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c30
sub ecx, edi
lea edi, [esi + edx*2]
sar ecx, 1
cmp dword [ebx + 0x9ad4], 0
je 0x415cd6
sub ecx, edx
lea esi, [ecx*2 + 0x16]
push esi
call fcn.004360b7
push esi
push 0
push eax
mov dword [ebp - 0x2a4], eax
call fcn.0042e960
mov ecx, dword [ebp - 0x2a4]
add esp, 0x10
mov edx, ecx
sub edx, edi
mov dword [ecx], esi
mov dword [ecx + 4], 0x14
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [edi + edx + 0x12], ax
test ax, ax
jne 0x415c83
push 0
lea eax, [ebp - 0x2a8]
mov dword [ecx + 0x10], 1
push eax
push 0x2c
lea eax, [ebp - 0x3c]
push eax
push dword [ecx]
push ecx
push 0x8321008c
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.0043609c
mov esi, dword [ebp - 0x290]
add esp, 4
jmp 0x415d04
push 0
lea eax, [ebp - 0x2a8]
push eax
push 0x2c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
push edi
push 0x83210038
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
test edi, edi
je 0x415d28
cmp byte [ebp - 0x38], 0
jne 0x415d40
cmp byte [ebp - 0x37], 0
mov eax, 0x4e
mov ecx, 0x59
cmovne eax, ecx
movzx eax, ax
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebx]
push dword [ebp - 0x2a0]
push esi
mov esi, dword [eax + 0x48]
mov ecx, esi
call dword [0x47d42c]
mov ecx, ebx
call esi
push dword [ebp - 0x290]
call fcn.00428a5e
mov edi, dword [ebp - 0x2ac]
add esp, 4
jmp 0x415d6d
lea eax, [ebp - 0x260]
push eax
push edi
call fcn.00413d50
push eax
push ebx
call fcn.00419c10
add esp, 0x10
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x294]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebx + 0x1a30], 0
mov esi, eax
je 0x4159f0
mov eax, dword [ebp - 0x294]
test eax, eax
je 0x415da0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2cc]
call fcn.00414ba0
mov eax, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret
call fcn.00435e90
int3