Function at 0x52b020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64bf50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x840
mov al, byte [ecx + 0x14]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
test al, al
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ebx
jne 0x52b301
mov eax, dword [0x6fca48]
cmp eax, ebx
jne 0x52b065
mov eax, 0x6fca4c
mov edx, str._sfoldresHistory.txt
lea esi, [ecx + 0x18]
test edx, edx
je 0x52b12f
cmp eax, ebx
je 0x52b12f
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401ee0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401070
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x28], bx
push ebx
push str._sfoldresHistory.txt
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004027e0
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
call fcn.00609a4e
lea ebx, [eax + edi + 2]
lea eax, [ebx + ebx]
push eax
call fcn.00622acb
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x52b112
lea ecx, [ebx + ebx]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x4c]
call fcn.00401f10
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f10
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.006099de
mov ecx, dword [esi]
push ecx
call fcn.00609a4e
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
mov byte [ecx + 0x14], 1
mov eax, dword [esi]
cmp eax, ebx
jne 0x52b13c
lea eax, [esi + 4]
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x3c], esi
je 0x52b301
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x18], bx
mov byte [ebp - 4], 3
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x84c]
lea edx, [ebp - 0x40]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [ebp - 0x84c]
push 0x7fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x52b2ee
cmp dword [ebp - 0x40], ebx
jbe 0x52b2ee
lea ecx, [ebp - 0x84c]
test ecx, ecx
je 0x52b242
lea edx, [ebp - 0x84c]
push edx
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x52b242
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x52b1d8
push eax
call fcn.00609a4e
add esp, 4
mov esi, eax
jmp 0x52b1da
xor esi, esi
lea eax, [ebp - 0x84c]
push eax
call fcn.00609a4e
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.00622acb
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x52b242
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x52b21b
push eax
push esi
call fcn.00609a95
lea edx, [ebp - 0x84c]
push edx
push esi
call fcn.00609a6b
add esp, 0x10
jmp 0x52b22b
lea eax, [ebp - 0x84c]
push eax
push esi
call fcn.00609a95
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00401070
push esi
mov dword [ebp - 0x1c], esi
call fcn.00609a4e
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x52b24c
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.0060a17b
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x52b2e6
mov word [esi], bx
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x52b26e
lea eax, [ebp - 0x18]
push eax
call fcn.00609a4e
add esp, 4
test eax, eax
je 0x52b291
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x52b285
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push eax
add ecx, 4
call fcn.0052ad70
add esi, 2
lea ecx, [ebp - 0x38]
push esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov word [ebp - 0x34], bx
call fcn.00401f20
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x52b2b5
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f20
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x52b2c8
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.0060a17b
add esp, 8
lea ecx, [ebp - 0x38]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00401070
jmp 0x52b259
mov esi, dword [ebp - 0x3c]
jmp 0x52b16b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00401070
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret