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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47de9b
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x4b5200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x298], edx
mov esi, ecx
mov dword [ebp - 0x284], esi
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x288], eax
mov edi, edx
xor eax, eax
movq qword [ebp - 0x294], xmm0
mov dword [ebp - 0x28c], 0
test esi, esi
je 0x4098ae
cmp word [esi], ax
je 0x4098ae
inc eax
cmp word [esi + eax*2], 0
jne 0x4098a6
xor ecx, ecx
inc ecx
cmp word [ecx*2 + 0x49faa8], 0
jne 0x4098b0
add ecx, eax
test edx, edx
je 0x4098da
xor eax, eax
cmp word [edx], ax
je 0x4098d8
nop dword [eax]
inc eax
cmp word [edx + eax*2], 0
jne 0x4098d0
add ecx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x278], ecx
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
add esp, 4
mov dword [ebp - 0x280], eax
mov edx, eax
test esi, esi
je 0x409931
movzx ecx, word [esi]
mov eax, ecx
mov dword [ebp - 0x274], eax
mov eax, edx
test cx, cx
je 0x409931
movzx ecx, cx
sub esi, eax
nop
mov word [edx], cx
add edx, 2
movzx eax, word [esi + edx]
mov ecx, eax
test ax, ax
jne 0x409920
mov esi, 0x49faa8
mov ecx, 0x5c
sub esi, edx
nop dword [eax]
mov word [edx], cx
add edx, 2
movzx eax, word [esi + edx]
mov ecx, eax
test ax, ax
jne 0x409940
mov esi, dword [ebp - 0x284]
mov eax, edi
test eax, eax
je 0x409978
movzx eax, word [eax]
mov ecx, eax
test ax, ax
je 0x409978
mov word [edx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add edx, 2
test ax, ax
jne 0x409967
mov edi, dword [ebp - 0x280]
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x290], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dl, al
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0x278], 1
and dl, 4
mov byte [ebp - 0x28c], 1
and ecx, 0xfffffffb
mov byte [ebp - 0x279], dl
test dl, dl
push 0x250
cmove ecx, eax
lea eax, [ebp - 0x270]
push 0
push eax
mov dword [ebp - 0x274], ecx
movups xmmword [ebp - 0x20], xmm0
call fcn.0046ce00
add esp, 0xc
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x409a13
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x1c], 0
call fcn.00401330
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 1
cmp eax, 0xffffffff
jne 0x409a90
mov ecx, dword [ebp - 0x274]
test cl, 2
je 0x409c7d
mov eax, dword [ebp - 0x288]
push dword [eax + 4]
push 5
push ecx
push esi
mov ecx, eax
call fcn.00404070
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x28c], 1
cmp eax, 0xffffffff
je 0x409a55
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x409c77
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x1c], 0
call fcn.00401330
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x409c77
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x2a0], edi
mov dword [ebp - 0x294], 0
lea edi, [ebp - 0x244]
mov byte [ebp - 0x28c], 0
mov dword [ebp - 0x290], 0
test esi, esi
je 0x409aca
cmp word [esi], ax
je 0x409aca
inc eax
cmp word [esi + eax*2], 0
jne 0x409ac2
xor ecx, ecx
nop dword [eax]
inc ecx
cmp word [ecx*2 + 0x49faa8], 0
jne 0x409ad0
add ecx, eax
xor eax, eax
cmp word [ebp - 0x244], ax
je 0x409afc
nop dword [eax]
inc eax
cmp word [ebp + eax*2 - 0x244], 0
jne 0x409af0
add ecx, eax
mov edx, 2
mov dword [ebp - 0x29c], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
add esp, 4
mov dword [ebp - 0x280], eax
test esi, esi
je 0x409b47
movzx ecx, word [esi]
mov edx, ecx
test cx, cx
je 0x409b47
sub esi, eax
mov word [eax], dx
add eax, 2
movzx ecx, word [esi + eax]
mov edx, ecx
test cx, cx
jne 0x409b36
mov esi, 0x49faa8
mov edx, 0x5c
sub esi, eax
mov word [eax], dx
add eax, 2
movzx ecx, word [esi + eax]
mov edx, ecx
test cx, cx
jne 0x409b53
mov ecx, dword [ebp - 0x244]
test cx, cx
je 0x409b83
movzx ecx, cx
mov word [eax], cx
lea edi, [edi + 2]
movzx ecx, word [edi]
add eax, 2
test cx, cx
jne 0x409b72
mov edi, dword [ebp - 0x280]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x290], eax
mov eax, dword [ebp - 0x2a0]
mov dword [ebp - 0x294], edi
test eax, eax
je 0x409bb3
push eax
call fcn.0046b303
add esp, 4
mov eax, dword [ebp - 0x270]
mov ecx, edi
mov byte [ebp - 0x28c], 1
push dword [ebp - 0x288]
test al, 0x10
je 0x409bf3
test eax, 0x400
je 0x409be0
mov edx, dword [ebp - 0x274]
call fcn.00409d90
jmp 0x409bfe
push dword [ebp - 0x274]
mov edx, dword [ebp - 0x298]
call fcn.00409840
jmp 0x409bfe
mov edx, dword [ebp - 0x274]
call fcn.00409d00
test eax, eax
jne 0x409c0a
mov dword [ebp - 0x278], eax
jmp 0x409c25
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x409c25
cmp eax, 2
mov eax, 2
cmove esi, eax
mov dword [ebp - 0x278], esi
call fcn.00403920
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x409c71
lea ecx, [ebp - 0x270]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x409c62
lea ecx, [ebp - 0x270]
call fcn.00401330
mov esi, dword [ebp - 0x284]
test al, al
jne 0x409a90
mov eax, dword [ebp - 0x20]
jmp 0x409c77
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x284]
mov ecx, dword [ebp - 0x274]
cmp byte [ebp - 0x279], 0
jne 0x409cba
push dword [ebp - 0x288]
mov edx, ecx
mov ecx, esi
call fcn.00409d90
test eax, eax
jne 0x409ca0
xor esi, esi
mov eax, dword [ebp - 0x20]
jmp 0x409cc0
mov esi, dword [ebp - 0x278]
test esi, esi
je 0x409c9b
cmp eax, 2
mov eax, 2
cmove esi, eax
mov eax, dword [ebp - 0x20]
jmp 0x409cc0
mov esi, dword [ebp - 0x278]
cmp eax, 0xffffffff
je 0x409ccc
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x409cd9
push edi
call fcn.0046b303
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b2f5
mov esp, ebp
pop ebp
ret 8