Function at 0x4061e0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x11a0
call fcn.0040ce80
push ebx
mov ebx, dword [esp + 0x11a8]
push ebp
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x7b0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x7b0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41c2cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x7b8]
push 0xffffffffffffffff
and ecx, 3
push eax
push 0
push 0xfde9
rep movsb byte es:[edi], byte [esi]
call ebp
lea ecx, [esp + 0xdb0]
push eax
push ecx
lea edx, [esp + 0x7b8]
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call ebp
lea eax, [esp + 0x560]
lea ecx, [esp + 0xdb0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x4064d2
mov al, byte [esp + 0x560]
test al, 0x10
jne 0x4064b4
test al, 0x20
je 0x4064b4
cmp word [esp + 0x58c], 0x2e
je 0x4064b4
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call ebp
lea edx, [esp + 0x9b0]
push eax
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call ebp
lea eax, [esp + 0x58c]
lea ecx, [esp + 0x9b0]
push eax
push ecx
call fcn.0040e97e
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x9b0]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call esi
push 0
push 0
push eax
lea eax, [esp + 0x36c]
push eax
lea ecx, [esp + 0x9c0]
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call esi
lea edx, [esp + 0x9b0]
push edx
call sym.Sure_XLite.exe__xFileLockedW_4
test al, al
jne 0x4064b4
lea eax, [esp + 0x360]
push eax
call sym.Sure_XLite.exe__xGetFileAtt_4
lea ecx, [esp + 0x360]
push 0
push ecx
call sym.Sure_XLite.exe__xSetFileAtt_8
push 1
lea edx, [esp + 0x364]
push 1
lea eax, [esp + 0x18]
push edx
push eax
call sym.Sure_XLite.exe__xFileOpen_16
lea ecx, [esp + 0x10]
push ecx
call sym.Sure_XLite.exe__xGetFileSize_4
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x3c], eax
call sym.Sure_XLite.exe__xFileClose_4
lea edi, [esp + 0x360]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x20], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x140]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x360]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x360]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x240]
push ecx
push edx
call sym.Sure_XLite.exe__xStripPath_8
lea eax, [esp + 0x240]
lea ecx, [esp + 0x360]
push eax
push ecx
push str.PQ_IngestW_SrcFile_s_Alias_s
call sym.Sure_XLite.exe_xLogMsg
add esp, 0xc
call fcn.00408390
mov dword [esp + 0x340], eax
mov al, byte [0xba81b3]
test al, al
mov word [esp + 0x344], 0x50
mov dword [esp + 0x2c], 0
je 0x406485
lea edx, [esp + 0x18]
lea eax, [esp + 0x360]
push edx
push eax
call sym.Sure_XLite.exe__WS_Ext_8
lea ecx, [esp + 0x18]
push ecx
call fcn.00407c50
add esp, 4
mov byte [esp + 0x21], al
jmp 0x40648a
mov byte [esp + 0x21], 0
mov dl, byte [0xba81b4]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x26], dl
mov byte [esp + 0x28], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x27], 0
call fcn.00407a90
mov edi, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x560]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4062a8
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11a0
ret