Function at 0x1004fc02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
and dword [ebp - 8], 0
and dword [ebp - 0x38], 0
mov dword [ebp - 0xc], 0x5a
and dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
jne 0x1004fc28
xor eax, eax
jmp 0x1004ffa5
cmp dword [ebp + 0x10], 0
je 0x1004fc34
cmp dword [ebp + 0x14], 0
jne 0x1004fc3c
mov eax, dword [ebp - 0xc]
jmp 0x1004ffa5
push 8
push str.sha256__
push dword [ebp + 0xc]
call fcn.1000fc60
add esp, 0xc
test eax, eax
jne 0x1004fe37
mov eax, dword [0x1008aa68]
cmp dword [eax + 0x5c], 0
jne 0x1004fc69
mov eax, dword [ebp - 0xc]
jmp 0x1004ffa5
push 0x20
call dword [0x1008a930]
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1004fc83
push 0x1b
pop eax
jmp 0x1004ffa5
push 0x20
push dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [0x1008aa68]
call dword [eax + 0x5c]
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1004fcaa
mov eax, dword [ebp - 0x1c]
jmp 0x1004ffa5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.100748ed
add esp, 0x14
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call dword [0x1008a938]
pop ecx
and dword [ebp - 0x10], 0
xor eax, eax
jne 0x1004fcc5
cmp dword [ebp - 0x1c], 0
je 0x1004fce5
mov eax, dword [ebp - 0x1c]
jmp 0x1004ffa5
xor eax, eax
jne 0x1004fce5
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x20]
mov al, byte [eax]
mov byte [ebp - 1], al
inc dword [ebp - 0x20]
cmp byte [ebp - 1], 0
jne 0x1004fcf6
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call dword [0x1008a930]
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1004fd44
push dword [ebp - 0x2c]
call dword [0x1008a938]
pop ecx
and dword [ebp - 0x2c], 0
xor eax, eax
jne 0x1004fd2a
push 0x1b
pop eax
jmp 0x1004ffa5
push dword [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call fcn.10007cf0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
push str._sha256__
push dword [ebp - 0x28]
call fcn.10007a10
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1004fd80
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x28]
add eax, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x24]
mov al, byte [eax]
mov byte [ebp - 2], al
inc dword [ebp - 0x24]
cmp byte [ebp - 2], 0
jne 0x1004fd90
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
jne 0x1004fdd6
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
push dword [ebp - 0x2c]
call fcn.10023540
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x1004fdd6
and dword [ebp - 0xc], 0
jmp 0x1004fe0b
cmp dword [ebp - 0x14], 0
je 0x1004fdfb
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + eax], 0x3b
push 0x1008bbbc
push dword [ebp - 0x14]
call fcn.10007a10
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x14], 0
je 0x1004fe0b
cmp dword [ebp - 0x28], 0
jne 0x1004fd5b
push dword [ebp - 0x2c]
call dword [0x1008a938]
pop ecx
and dword [ebp - 0x2c], 0
xor eax, eax
jne 0x1004fe0b
push dword [ebp - 0x30]
call dword [0x1008a938]
pop ecx
and dword [ebp - 0x30], 0
xor eax, eax
jne 0x1004fe1d
mov eax, dword [ebp - 0xc]
jmp 0x1004ffa5
push 0x1008bbb8
push dword [ebp + 0xc]
call fcn.1000efd6
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1004fe57
mov eax, dword [ebp - 0xc]
jmp 0x1004ffa5
push 2
push 0
push dword [ebp - 0x18]
call fcn.1000f39d
add esp, 0xc
test eax, eax
je 0x1004fe6f
jmp 0x1004ff75
push dword [ebp - 0x18]
call fcn.1001553b
pop ecx
mov dword [ebp - 0x3c], eax
push 0
push 0
push dword [ebp - 0x18]
call fcn.1000f39d
add esp, 0xc
test eax, eax
je 0x1004fe93
jmp 0x1004ff75
cmp dword [ebp - 0x3c], 0
jl 0x1004fea2
cmp dword [ebp - 0x3c], 0x100000
jle 0x1004fea7
jmp 0x1004ff75
mov eax, dword [ebp - 0x3c]
cdq
push edx
push eax
call fcn.10040c2e
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x34]
jbe 0x1004fec4
jmp 0x1004ff75
mov eax, dword [ebp - 0x34]
inc eax
push eax
call dword [0x1008a930]
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1004fede
jmp 0x1004ff75
push dword [ebp - 0x18]
push 1
push dword [ebp - 0x34]
push dword [ebp - 8]
call fcn.1000ede4
add esp, 0x10
cmp eax, 1
je 0x1004fef8
jmp 0x1004ff75
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x34]
jne 0x1004ff20
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.10023540
add esp, 0xc
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1004ff1e
and dword [ebp - 0xc], 0
jmp 0x1004ff75
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x34]
mov byte [eax], 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 8]
call fcn.1004ffa7
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x1004ff47
jmp 0x1004ff75
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x64]
jne 0x1004ff6d
push dword [ebp + 0x14]
push dword [ebp - 0x38]
push dword [ebp + 0x10]
call fcn.10023540
add esp, 0xc
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x1004ff6d
and dword [ebp - 0xc], 0
xor eax, eax
jne 0x1004fe57
push dword [ebp - 8]
call dword [0x1008a938]
pop ecx
and dword [ebp - 8], 0
xor eax, eax
jne 0x1004ff75
push dword [ebp - 0x38]
call dword [0x1008a938]
pop ecx
and dword [ebp - 0x38], 0
xor eax, eax
jne 0x1004ff87
push dword [ebp - 0x18]
call fcn.1000f063
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret