Function at 0x5346a0
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 [0x706c74]
lea esi, [esp + 0x274]
mov dword [esp + 0x18], ebp
call fcn.005388b0
mov edi, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x5346d6
mov eax, dword [str.checkpoints.sav]
mov ecx, dword [0x66a534]
mov edx, dword [0x66a538]
mov dword [edi], eax
mov eax, dword [0x66a53c]
mov dword [edi + 4], ecx
mov cx, word [0x66a540]
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 0x5348ca
add ebp, 4
mov ecx, dword [str.checkpoints_]
mov eax, dword [0x66a528]
mov edx, dword [0x66a524]
mov dword [esp + 0x34], ecx
mov cl, byte [0x66a52c]
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 0x534760
lea edi, [esp + 0x34]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x534770
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.00620e80
add esp, 8
test eax, eax
je 0x53479c
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.00534490
add esp, 0xc
mov esi, eax
cmp si, 0xffff
je 0x534895
lea eax, [esp + 0x34]
push str.autosave
push eax
call fcn.00620ad0
add esp, 8
test eax, eax
je 0x5347e8
mov al, byte [esp + 0x378]
test al, al
je 0x534895
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.00620e80
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 0x534850
mov edi, str.autosave
mov esi, eax
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x534875
mov dword [ebp + 0x20], 2
jmp 0x53488e
mov esi, eax
mov edi, str.autosave1
mov ecx, 0xa
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x53488e
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 0x5348b7
cmp dword [esp + 0x10], 0x66
jl 0x534730
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 0x534660
push 0x48
push ebx
push ebp
mov byte [0x698098], cl
call fcn.0061eab0
add esp, 0x10
xor edi, edi
test ebx, ebx
jle 0x53492b
lea esi, [ebp + 4]
mov eax, dword [esp + 0x380]
test eax, eax
je 0x534924
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 0x534925
inc edi
add esi, 0x48
dec ebx
jne 0x5348f1
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret