Function at 0x409aa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ef05
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x467030]
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 esi, ecx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x298], edi
push dword [edi + 4]
push dword [edi]
call fcn.00404a50
mov eax, dword [edi]
add esp, 0xc
mov dword [edi + 4], eax
mov eax, 0x7ffffffe
mov ecx, dword [esi + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x409ce0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409b09
mov eax, dword [esi]
push 1
push 0x451ea0
push ecx
push eax
push esi
push dword [ebp - 0x298]
lea ecx, [ebp - 0x40]
call fcn.00406cf0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x294], edi
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x18], 0
lea edx, [eax + 2]
mov dword [ebp - 0x14], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409b74
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0040dc80
test byte [ebp - 0x290], 0x10
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov byte [ebp - 4], 1
je 0x409c37
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x28]
cmp ebx, 8
cmovae edi, esi
cmp eax, 1
jne 0x409bda
mov ecx, 0x451ea4
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x409bd7
add ecx, 2
sub edx, 1
jne 0x409bc4
jmp 0x409c31
mov eax, dword [ebp - 0x18]
cmp ebx, 8
lea edi, [ebp - 0x28]
cmovae edi, esi
cmp eax, 2
jne 0x409c04
mov ecx, 0x451ea8
mov edx, eax
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x409c04
add ecx, 2
sub edx, 1
jne 0x409bf1
jmp 0x409c31
mov edi, dword [ebp - 0x298]
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x409c23
mov ecx, eax
call fcn.00406ab0
add dword [edi + 4], 0x18
jmp 0x409c2b
push eax
mov ecx, edi
call fcn.00404ac0
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x294]
mov byte [ebp - 4], 0
cmp ebx, 8
jb 0x409c6f
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x409c65
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ce5
push ebx
push esi
call fcn.004292f5
add esp, 8
lea eax, [ebp - 0x290]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409b50
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x409cc2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409cb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409ce5
push edx
push ecx
call fcn.004292f5
add esp, 8
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.00429303
mov esp, ebp
pop ebp
ret 4
call fcn.004020b0
call fcn.0042d6e1
int3