Function at 0x406453
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xa2c
mov eax, dword [esp + 0xa40]
lea ebx, [esp + 0x618]
mov dword [esp + 0x14], 0x204
mov dword [esp + 0xc], 0x204
mov dword [esp + 4], 0
mov dword [esp + 0x10], ebx
mov dword [esp], 0xfde9
mov dword [esp + 8], eax
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov dword [esp], 0x8003
call sub.KERNEL32.dll_SetErrorMode
push esi
lea eax, [esp + 0x3c8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FindFirstFileW
cmp eax, 0xffffffff
push edi
push edi
jne 0x4064f6
mov eax, dword [esp + 0xa40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movzx edx, byte [eax + 0x205]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x208]
mov dword [esp], eax
call fcn.00405d7d
jmp 0x4067e3
mov ebx, eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call fcn.0041236c
test al, al
je 0x4067e3
lea eax, [esp + 0x58]
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call fcn.0041236c
test al, al
je 0x4067e3
lea eax, [esp + 0x64]
mov esi, 0x4222c0
mov dword [esp + 4], eax
lea eax, [esp + 0x3dc]
mov dword [esp], eax
call sub.KERNEL32.dll_FileTimeToSystemTime
push ecx
push ecx
mov ecx, 7
movzx eax, word [esp + 0x70]
lea edi, [esp + 0x84]
lea ebp, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 4], 0x20
mov dword [esp], ebp
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x6e]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x6c]
mov dword [esp + 0x18], eax
movzx eax, word [esp + 0x64]
mov dword [esp + 0x14], eax
movzx eax, word [esp + 0x66]
mov dword [esp + 0x10], eax
movzx eax, word [esp + 0x6a]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x84]
mov dword [esp + 8], eax
call fcn.004127a8
test byte [esp + 0x3c8], 0x10
je 0x40666a
lea edi, [esp + 0x74]
mov esi, str._d_a_s_a_s_a
mov ecx, 0xa
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x3f4]
lea esi, [esp + 0xc0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [esp + 0x3c8]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x1c4]
mov dword [esp + 0x14], ebp
mov dword [esp + 4], 0x204
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
call fcn.004127a8
test eax, eax
jle 0x406737
mov dword [esp + 8], eax
mov dword [esp + 4], esi
lea eax, [esp + 0x58]
jmp 0x40672f
mov eax, dword [esp + 0x3e4]
lea edi, [esp + 0x74]
mov esi, str._d_a_s_a_I64u_a_s_a
mov ecx, 4
mov edx, dword [esp + 0x3e8]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x38], eax
lea esi, [esp + 0xc0]
lea eax, [esp + 0x3f4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x104
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [esp + 0x3c], edx
call sub.KERNEL32.dll_WideCharToMultiByte
sub esp, 0x20
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], esi
lea esi, [esp + 0x1c4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 4], 0x204
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c8]
mov dword [esp + 0x14], edx
mov dword [esp], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x74]
mov dword [esp + 8], eax
call fcn.004127a8
test eax, eax
jle 0x406737
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.00412458
lea eax, [esp + 0x3c8]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
push edx
push edx
jne 0x406530
mov dword [esp], ebx
call sub.KERNEL32.dll_FindClose
push eax
lea esi, [esp + 0x4c]
lea ebx, [esp + 0x58]
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004124b9
test al, al
je 0x4067a3
mov dword [esp], ebx
call fcn.00412540
mov edx, dword [esp + 0xa40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
movzx eax, byte [edx + 0x204]
mov dword [esp + 4], eax
mov eax, dword [edx + 0x208]
jmp 0x4067cb
mov eax, dword [esp + 0xa40]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movzx edx, byte [eax + 0x205]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x208]
mov dword [esp], eax
call fcn.00405d7d
mov dword [esp], esi
call fcn.004123b1
mov dword [esp], ebx
call fcn.004123b1
mov eax, dword [esp + 0xa40]
cmp byte [eax + 0x20c], 0
je 0x406802
lea eax, [esp + 0xa40]
mov dword [esp], eax
call fcn.00407f59
add esp, 0xa2c
pop ebx
pop esi
pop edi
pop ebp
ret