Function at 0x41f690
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x5bf23c]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov al, byte [esi]
mov ebx, 0x5d7890
test al, al
jne 0x41f86c
cmp dword [esi + 0x2a0], 0
je 0x41fa59
test al, al
jne 0x41f86c
mov ecx, dword [esi + 0x2a0]
xor eax, eax
add ecx, dword [esi + 0x29c]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x41f6f4
mov edx, dword [edx]
test edx, edx
je 0x41f6f4
mov eax, dword [edx]
lea edx, [ecx - 1]
test eax, eax
je 0x41f70b
mov eax, dword [eax]
test eax, eax
je 0x41f70b
mov eax, dword [eax]
test eax, eax
je 0x41f70b
mov eax, dword [eax]
jmp 0x41f70d
xor eax, eax
mov ecx, dword [eax + 8]
lea edi, [esi + 0x258]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
cmp edi, eax
je 0x41f72f
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407e60
mov eax, dword [esi + 0x2a0]
mov ecx, dword [esi + 0x29c]
dec eax
add ecx, eax
mov eax, dword [esi + 0x298]
dec eax
and ecx, eax
mov eax, dword [esi + 0x294]
mov ecx, dword [eax + ecx*4]
call fcn.00407770
add dword [esi + 0x2a0], 0xffffffff
jne 0x41f768
mov dword [esi + 0x29c], 0
push edi
lea ecx, [esp + 0x30]
call fcn.00407830
sub esp, 8
cmp dword [esi + 0x288], 0
jne 0x41f78f
mov eax, esp
mov dword [eax], 0x5a7218
mov dword [eax + 4], 1
jmp 0x41f7b3
cmp dword [esi + 0x28c], 8
mov edx, esp
jb 0x41f7a2
mov ecx, dword [esi + 0x278]
jmp 0x41f7a8
lea ecx, [esi + 0x278]
mov dword [edx], ecx
mov eax, dword [esi + 0x288]
mov dword [edx + 4], eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x38]
call fcn.004173f0
lea ecx, [esp + 0x2c]
cmp ecx, eax
je 0x41f7d3
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e60
lea ecx, [esp + 0x44]
call fcn.00407770
cmp dword [0x5d7890], 0
jne 0x41f819
push 0x4c
call fcn.004fc848
add esp, 4
mov ecx, eax
call fcn.0041a610
mov edi, eax
xor eax, eax
mov ecx, edi
lock cmpxchg dword [ebx], ecx
test eax, eax
je 0x41f819
test edi, edi
je 0x41f819
lea ecx, [edi + 0x34]
call fcn.004078e0
push edi
call fcn.004fc87b
add esp, 4
mov eax, dword [0x5d7890]
lea ebx, [esi + 4]
cmp dword [eax], 4
lea eax, [esp + 0x2c]
jl 0x41f846
cmp dword [esp + 0x40], 8
push 2
cmovae eax, dword [esp + 0x30]
push 0
push 0
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x41f858
cmp dword [esp + 0x40], 8
push ebx
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x2c]
mov dword [esi + 0x254], eax
mov byte [esi], 1
call fcn.00407770
jmp 0x41f896
lea eax, [esi + 4]
push eax
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f896
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
cmp dword [esi + 0x254], 0xffffffff
jne 0x41f8ff
lea ecx, [esp + 0x44]
mov byte [esi], 0
call fcn.00407810
mov ebx, eax
lea edi, [esi + 0x278]
cmp edi, ebx
je 0x41f8f1
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x41f8ca
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00408f80
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x41f8e2
mov eax, dword [edi]
jmp 0x41f8e4
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push ebx
call fcn.00409a60
lea ecx, [esp + 0x44]
call fcn.00407770
jmp 0x41f6b0
lea edi, [esi + 0x30]
test edi, edi
jne 0x41f90a
xor ebx, ebx
jmp 0x41f92f
cmp word [edi], 0
jne 0x41f914
xor ebx, ebx
jmp 0x41f92f
mov ebx, edi
lea ecx, [ebx + 2]
nop dword [eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41f920
sub ebx, ecx
sar ebx, 1
lea ecx, [esp + 0x14]
call fcn.00407810
test ebx, ebx
jne 0x41f955
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
mov dword [esp + 0x24], ebx
cmovae eax, dword [esp + 0x14]
xor ecx, ecx
mov word [eax], cx
jmp 0x41f960
push ebx
push edi
lea ecx, [esp + 0x1c]
call fcn.00407d60
push 1
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea ecx, [esp + 0x20]
call fcn.00417ce0
cmp eax, 0xffffffff
je 0x41f98b
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.00408a70
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0041fcd0
test al, al
je 0x41f9a9
lea ecx, [esp + 0x14]
call fcn.00407770
jmp 0x41f6b0
sub esp, 8
mov ecx, esp
mov dword [ecx], edi
test edi, edi
je 0x41f9d0
cmp word [edi], 0
jne 0x41f9be
xor edi, edi
jmp 0x41f9d0
lea edx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x41f9c1
sub edi, edx
sar edi, 1
lea eax, [esp + 0x4c]
mov dword [ecx + 4], edi
push eax
lea ecx, [esi + 0x258]
call fcn.004173f0
lea ecx, [esp + 0x14]
cmp ecx, eax
je 0x41f9f5
push 0xffffffffffffffff
push 0
push eax
call fcn.00407e60
lea ecx, [esp + 0x44]
call fcn.00407770
test byte [esi + 4], 0x10
je 0x41fa42
cmp byte [esi + 0x270], 0
je 0x41fa39
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
jne 0x41fa39
lea eax, [esp + 0x14]
push eax
lea ecx, [esi + 0x290]
call fcn.0041fb20
test byte [esi + 0x274], 2
jmp 0x41fa49
test byte [esi + 0x274], 1
jne 0x41fa64
lea ecx, [esp + 0x14]
call fcn.00407770
jmp 0x41f6b0
mov ecx, dword [esp + 0xc]
call fcn.00407810
jmp 0x41fa7b
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.00407830
lea ecx, [esp + 0x14]
call fcn.00407770
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004fc837
mov esp, ebp
pop ebp
ret 4