Function at 0x53c330
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x1cb0
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
mov eax, dword [0x6afd54]
lea esi, [esp + 0x274]
mov dword [esp + 0x18], ebp
call fcn.00540540
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x53c366
mov eax, dword [str.checkpoints.sav]
mov ecx, dword [0x610194]
mov edx, dword [0x610198]
mov dword [edi], eax
mov eax, dword [0x61019c]
mov dword [edi + 4], ecx
mov cx, word [0x6101a0]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x278]
push eax
mov word [edi + 0x10], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x53c55a
add ebp, 4
mov ecx, dword [str.checkpoints_]
mov eax, dword [0x610188]
mov edx, dword [0x610184]
mov dword [esp + 0x34], ecx
mov cl, byte [0x61018c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x160]
mov dword [esp + 0x38], edx
mov byte [esp + 0x40], cl
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x53c3f0
lea edi, [esp + 0x34]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x53c400
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x34]
and ecx, 3
push 0x2e
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.005ca7c0
add esp, 8
test eax, eax
je 0x53c42c
mov byte [eax], 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ebx, [esp + 0x2c]
call fcn.0053c120
add esp, 0xc
mov esi, eax
cmp si, 0xffff
je 0x53c525
lea eax, [esp + 0x34]
push str.autosave
push eax
call fcn.005ca410
add esp, 8
test eax, eax
je 0x53c478
mov al, byte [esp + 0x378]
test al, al
je 0x53c525
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [ebp], edx
mov edx, dword [esp + 0x28]
lea eax, [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov word [ebp - 4], si
mov dword [ebp + 0x20], 0
mov eax, dword [esp + 0x148]
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x34]
push 0x5c
push edx
mov dword [ebp + 0x1c], ecx
call fcn.005ca7c0
add esp, 8
inc eax
mov edx, ebp
sub edx, eax
mov ecx, eax
lea esi, [edx + 0x24]
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x53c4e0
mov edi, str.autosave
mov esi, eax
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x53c505
mov dword [ebp + 0x20], 2
jmp 0x53c51e
mov esi, eax
mov edi, str.autosave1
mov ecx, 0xa
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x53c51e
mov dword [ebp + 0x20], 1
inc dword [esp + 0x10]
add ebp, 0x48
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x53c547
cmp dword [esp + 0x10], 0x66
jl 0x53c3c0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov cl, byte [esp + 0x37c]
push 0x53c2f0
push 0x48
push ebx
push ebp
mov byte [0x6396f0], cl
call fcn.005c8520
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x53c5bb
lea esi, [ebp + 4]
mov eax, dword [esp + 0x380]
test eax, eax
je 0x53c5b4
mov edx, dword [esp + 0x384]
push edx
mov edx, dword [esi]
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
xor edx, edx
mov dx, word [esi - 4]
push ecx
lea ecx, [esi + 0x24]
push edx
push ecx
push edi
call eax
add esp, 0x1c
test al, al
je 0x53c5b5
inc edi
add esi, 0x48
dec ebx
jne 0x53c581
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret