Function at 0x5f4de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x7062c4
push eax
mov edi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x128], ebx
test ebx, ebx
jne 0x5f4e39
push eax
push 0x711b68
push str.Ambience
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.005f48f0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
lea eax, [ebp - 0x140]
push ebx
push 1
push 4
push eax
call esi
add esp, 0x10
mov dword [ebp - 0x13c], 0
cmp dword [ebp - 0x140], 0
jle 0x5f5251
add edi, 0xb8
mov dword [ebp - 0x14c], edi
nop dword [eax + eax]
push 0x10118
call fcn.006df8c3
mov edi, eax
mov dword [ebp - 0x130], eax
add esp, 4
test edi, edi
je 0x5f4eb0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
jmp 0x5f4eb8
xor edi, edi
mov dword [ebp - 0x130], edi
push ebx
push 1
push 4
push edi
mov dword [ebp - 0x150], edi
call esi
push ebx
push 1
lea eax, [edi + 4]
push 4
push eax
call esi
push ebx
push 0x104
lea eax, [edi + 0x14]
push 1
push eax
call esi
push ebx
push 0x4000
lea eax, [edi + 0x118]
push 4
push eax
call esi
add esp, 0x40
lea eax, [ebp - 0x138]
push ebx
push 1
push 4
push eax
call esi
add esp, 0x10
mov dword [ebp - 0x134], 0
cmp dword [ebp - 0x138], 0
jle 0x5f5215
nop dword [eax + eax]
push 0x20
call fcn.006df8c3
mov edi, eax
mov dword [ebp - 0x110], eax
add esp, 4
test edi, edi
je 0x5f4f62
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
jmp 0x5f4f6a
xor edi, edi
mov dword [ebp - 0x110], edi
push ebx
push 1
push 4
push edi
mov dword [ebp - 0x148], edi
call esi
push ebx
push 1
lea eax, [edi + 4]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x120]
push 4
push eax
call esi
add esp, 0x30
mov dword [ebp - 0x10c], 0
cmp dword [ebp - 0x120], 0
jle 0x5f500e
lea esi, [edi + 8]
nop word [eax + eax]
push 0xc
call fcn.006df8c3
push ebx
mov edi, eax
push 1
push 0xc
mov dword [ebp - 0x144], edi
push edi
mov dword [ebp - 0x114], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [esi + 4]
add esp, 0x14
cmp eax, dword [esi + 8]
je 0x5f4fe4
mov dword [eax], edi
add dword [esi + 4], 4
jmp 0x5f4ff3
lea ecx, [ebp - 0x114]
push ecx
push eax
mov ecx, esi
call fcn.00462fd0
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [ebp - 0x10c], eax
cmp eax, dword [ebp - 0x120]
jl 0x5f4fb0
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
push 1
lea eax, [ebp - 0x12c]
push 4
push eax
call esi
add esp, 0x10
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x12c], 0
jle 0x5f51d0
push 0x11c
call fcn.006df8c3
mov edi, eax
mov dword [ebp - 0x124], eax
add esp, 4
test edi, edi
je 0x5f506f
mov dword [edi + 0x10c], 0
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0
jmp 0x5f5077
xor edi, edi
mov dword [ebp - 0x124], edi
push ebx
push 1
push 4
push edi
mov dword [ebp - 0x144], edi
call esi
push ebx
push 1
lea eax, [edi + 4]
push 4
push eax
call esi
push ebx
push 0x104
lea eax, [ebp - 0x108]
push 1
push eax
call esi
lea eax, [ebp - 0x108]
push eax
push 0x7476a0
lea eax, [edi + 8]
push 0x701a8c
push eax
call fcn.0044f6e0
add esp, 0x40
mov dword [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
push ebx
push 1
push 4
push eax
call esi
xor ebx, ebx
add esp, 0x10
cmp dword [ebp - 0x11c], ebx
jle 0x5f517a
lea esi, [edi + 0x10c]
mov edi, dword [ebp - 0x128]
push edi
push 4
lea eax, [ebp - 0x118]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [ebp - 0x118]
inc eax
push eax
call fcn.006dff04
mov ecx, dword [ebp - 0x118]
inc ecx
mov dword [ebp - 0x10c], eax
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push edi
push dword [ebp - 0x118]
push 1
push dword [ebp - 0x10c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [esi + 4]
add esp, 0x30
cmp eax, dword [esi + 8]
je 0x5f5156
mov ecx, dword [ebp - 0x10c]
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x5f5165
lea ecx, [ebp - 0x10c]
push ecx
push eax
mov ecx, esi
call fcn.00462fd0
inc ebx
cmp ebx, dword [ebp - 0x11c]
jl 0x5f50f3
mov edi, dword [ebp - 0x124]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ebx, dword [ebp - 0x128]
lea eax, [edi + 0x118]
push ebx
push 1
push 4
push eax
call esi
mov ecx, dword [ebp - 0x110]
add esp, 0x10
add ecx, 0x14
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x5f51aa
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x5f51b7
lea edx, [ebp - 0x144]
push edx
push eax
call fcn.00462fd0
mov eax, dword [ebp - 0x114]
inc eax
mov dword [ebp - 0x114], eax
cmp eax, dword [ebp - 0x12c]
jl 0x5f5036
mov edi, dword [ebp - 0x130]
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x5f51ec
mov ecx, dword [ebp - 0x110]
mov dword [eax], ecx
add dword [edi + 0xc], 4
jmp 0x5f51fc
lea ecx, [ebp - 0x148]
push ecx
push eax
lea ecx, [edi + 8]
call fcn.00462fd0
mov eax, dword [ebp - 0x134]
inc eax
mov dword [ebp - 0x134], eax
cmp eax, dword [ebp - 0x138]
jl 0x5f4f20
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x5f522b
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x5f5238
lea edx, [ebp - 0x150]
push edx
push eax
call fcn.00462fd0
mov eax, dword [ebp - 0x13c]
inc eax
mov dword [ebp - 0x13c], eax
cmp eax, dword [ebp - 0x140]
jl 0x5f4e80
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 4