Function at 0x4e3bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d084b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x14]
xor edi, edi
test al, al
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], edi
jne 0x4e3f4c
mov eax, dword [0x691b58]
cmp eax, edi
jne 0x4e3bf7
mov eax, 0x691b5c
mov ecx, str._sfoldresHistory.txt
lea esi, [ebx + 0x18]
test ecx, ecx
je 0x4e3cb8
cmp eax, edi
je 0x4e3cb8
push eax
lea ecx, [ebp - 0x40]
call fcn.00403af0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401070
push str._sfoldresHistory.txt
lea ecx, [ebp - 0x4c]
call fcn.00401e50
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 2
cmp eax, edi
jne 0x4e3c3e
lea eax, [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
push eax
call fcn.00591712
lea ebx, [eax + edi + 2]
lea eax, [ebx + ebx]
push eax
call fcn.005a9fe9
mov edi, eax
add esp, 8
test edi, edi
mov dword [esi], edi
je 0x4e3c9b
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 - 0x40]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x4c]
call fcn.00401ed0
push eax
mov eax, dword [esi]
push ebx
push eax
call fcn.005916a2
mov ecx, dword [esi]
push ecx
call fcn.00591712
add esp, 0x14
mov dword [esi + 8], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401070
mov ebx, dword [ebp - 0x20]
xor edi, edi
mov byte [ebx + 0x14], 1
mov eax, dword [esi]
cmp eax, edi
jne 0x4e3cc5
lea eax, [esi + 4]
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x2c], esi
je 0x4e3f4c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
mov word [ebp - 0x18], di
mov byte [ebp - 4], 3
mov ecx, 0x200
xor eax, eax
lea edi, [ebp - 0x85c]
lea edx, [ebp - 0x30]
rep stosd dword es:[edi], eax
push eax
push edx
lea eax, [ebp - 0x85c]
push 0x7fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e3f39
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x4e3f39
lea ecx, [ebp - 0x85c]
test ecx, ecx
je 0x4e3dcd
lea edx, [ebp - 0x85c]
push edx
call fcn.00591712
add esp, 4
test eax, eax
je 0x4e3dcd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e3d63
push eax
call fcn.00591712
add esp, 4
mov esi, eax
jmp 0x4e3d65
xor esi, esi
lea eax, [ebp - 0x85c]
push eax
call fcn.00591712
add eax, esi
lea ecx, [eax + eax + 2]
push ecx
call fcn.005a9fe9
mov esi, eax
add esp, 8
test esi, esi
je 0x4e3dcd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e3da6
push eax
push esi
call fcn.005918aa
lea edx, [ebp - 0x85c]
push edx
push esi
call fcn.00591880
add esp, 0x10
jmp 0x4e3db6
lea eax, [ebp - 0x85c]
push eax
push esi
call fcn.005918aa
add esp, 8
lea ecx, [ebp - 0x1c]
call fcn.00401070
push esi
mov dword [ebp - 0x1c], esi
call fcn.00591712
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4e3dd7
lea eax, [ebp - 0x18]
push 0xa
push eax
call fcn.00591b7f
mov edi, eax
add esp, 8
mov dword [ebp - 0x24], edi
test edi, edi
je 0x4e3f31
mov word [edi], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4e3dfe
lea eax, [ebp - 0x18]
push eax
call fcn.00591712
add esp, 4
test eax, eax
je 0x4e3ee6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e3e1b
mov dword [ebp - 0x28], eax
jmp 0x4e3e21
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x28], ecx
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
cmp eax, esi
jne 0x4e3ece
add esi, 0xa
mov dword [ebx + 0xc], esi
lea edx, [esi + esi*2]
lea eax, [edx*4 + 4]
push eax
call fcn.005a9fe9
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
mov byte [ebp - 4], 4
je 0x4e3e6f
push fcn.00401060
push fcn.004178c0
lea edi, [eax + 4]
push esi
push 0xc
push edi
mov dword [eax], esi
call fcn.00592283
mov ebx, edi
jmp 0x4e3e71
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 3
jne 0x4e3e8e
lea ecx, [ebp - 0x34]
push 0x6383a0
push ecx
mov dword [ebp - 0x34], 0xc0000017
call fcn.00593182
xor edi, edi
mov eax, dword [ebp - 0x20]
cmp edi, dword [eax + 8]
jge 0x4e3eb4
mov ecx, dword [eax + 0x10]
lea esi, [edi + edi*2]
shl esi, 2
add ecx, esi
call fcn.00401ed0
push eax
lea ecx, [esi + ebx]
call fcn.00401ee0
inc edi
jmp 0x4e3e90
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4e3ec5
push 3
call fcn.00401000
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [eax + 0x10], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x10]
lea ecx, [eax + edx*4]
mov edx, dword [ebp - 0x28]
push edx
call fcn.00401ee0
inc dword [ebx + 8]
add edi, 2
lea ecx, [ebp - 0x58]
push edi
call fcn.00403af0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401ee0
push 0xa
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
push eax
call fcn.00591b7f
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
call fcn.00401070
mov edi, dword [ebp - 0x24]
jmp 0x4e3de7
mov esi, dword [ebp - 0x2c]
jmp 0x4e3cf4
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