Function at 0x45ac70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0x5a
cmp dword [ebp + 0xc], 0
jne 0x45ac98
xor eax, eax
jmp 0x45b035
cmp dword [ebp + 0x10], 0
je 0x45aca4
cmp dword [ebp + 0x14], 0
jne 0x45acac
mov eax, dword [ebp - 8]
jmp 0x45b035
push 8
push str.sha256__
mov eax, dword [ebp + 0xc]
push eax
call fcn.00427050
add esp, 0xc
test eax, eax
jne 0x45aea3
mov ecx, dword [0x4aabb0]
cmp dword [ecx + 0x58], 0
jne 0x45acdb
mov eax, dword [ebp - 8]
jmp 0x45b035
push 0x20
call dword [0x4aaa70]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45acf9
mov eax, 0x1b
jmp 0x45b035
push 0x20
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [0x4aabb0]
mov eax, dword [edx + 0x58]
call eax
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45ad26
mov eax, dword [ebp - 0x18]
jmp 0x45b035
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x20
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004869e0
add esp, 0x14
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [0x4aaa78]
add esp, 4
mov dword [ebp - 0x14], 0
xor eax, eax
jne 0x45ad43
cmp dword [ebp - 0x18], 0
je 0x45ad69
mov eax, dword [ebp - 0x18]
jmp 0x45b035
xor ecx, ecx
jne 0x45ad69
mov edx, dword [ebp + 0xc]
push edx
call fcn.00426e50
add esp, 4
add eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
call dword [0x4aaa70]
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x45adb7
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x4aaa78]
add esp, 4
mov dword [ebp - 0x20], 0
xor edx, edx
jne 0x45ad95
mov eax, 0x1b
jmp 0x45b035
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0041d8f0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push str._sha256__
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0041f000
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45adfa
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp - 0xc]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
call fcn.00426e50
add esp, 4
cmp dword [ebp - 0x38], eax
jne 0x45ae32
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0041e0db
add esp, 0xc
test eax, eax
jne 0x45ae32
mov dword [ebp - 8], 0
jmp 0x45ae6b
cmp dword [ebp - 0xc], 0
je 0x45ae5b
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp - 0xc]
mov byte [edx + ecx], 0x3b
push 0x4abca4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0041f000
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0xc], 0
je 0x45ae6b
cmp dword [ebp - 0x1c], 0
jne 0x45add1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [0x4aaa78]
add esp, 4
mov dword [ebp - 0x20], 0
xor edx, edx
jne 0x45ae6b
mov eax, dword [ebp - 0x24]
push eax
call dword [0x4aaa78]
add esp, 4
mov dword [ebp - 0x24], 0
xor ecx, ecx
jne 0x45ae83
mov eax, dword [ebp - 8]
jmp 0x45b035
push 0x4abca0
mov edx, dword [ebp + 0xc]
push edx
call fcn.00461f80
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x45aec5
mov eax, dword [ebp - 8]
jmp 0x45b035
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00423e6f
add esp, 0xc
test eax, eax
je 0x45aede
jmp 0x45aff6
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0042d3e8
add esp, 4
mov dword [ebp - 0x30], eax
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
call fcn.00423e6f
add esp, 0xc
test eax, eax
je 0x45af06
jmp 0x45aff6
cmp dword [ebp - 0x30], 0
jl 0x45af15
cmp dword [ebp - 0x30], 0x100000
jle 0x45af1a
jmp 0x45aff6
mov eax, dword [ebp - 0x30]
cdq
push edx
push eax
call fcn.0044d8b0
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x28]
jbe 0x45af38
jmp 0x45aff6
mov ecx, dword [ebp - 0x28]
add ecx, 1
push ecx
call dword [0x4aaa70]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x45af56
jmp 0x45aff6
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004242f2
add esp, 0x10
cmp eax, 1
je 0x45af76
jmp 0x45aff6
mov edx, dword [ebp + 0x14]
cmp edx, dword [ebp - 0x28]
jne 0x45af9f
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0041e0db
add esp, 0xc
test eax, eax
jne 0x45af9d
mov dword [ebp - 8], 0
jmp 0x45aff6
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x28]
mov byte [eax], 0
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0045b040
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x45afc7
jmp 0x45aff6
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x40]
jne 0x45afee
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0041e0db
add esp, 0xc
test eax, eax
jne 0x45afee
mov dword [ebp - 8], 0
xor edx, edx
jne 0x45aec5
mov eax, dword [ebp - 4]
push eax
call dword [0x4aaa78]
add esp, 4
mov dword [ebp - 4], 0
xor ecx, ecx
jne 0x45aff6
mov edx, dword [ebp - 0x2c]
push edx
call dword [0x4aaa78]
add esp, 4
mov dword [ebp - 0x2c], 0
xor eax, eax
jne 0x45b00e
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004245f0
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret