Function at 0x100500f7
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
cmp dword [ebp + 0xc], 0
jne 0x10050119
xor eax, eax
jmp 0x10050493
cmp dword [ebp + 0x10], 0
je 0x10050125
cmp dword [ebp + 0x14], 0
jne 0x1005012d
mov eax, dword [ebp - 0xc]
jmp 0x10050493
push 8
push str.sha256__
push dword [ebp + 0xc]
call fcn.1002c100
add esp, 0xc
test eax, eax
jne 0x10050325
mov eax, dword [0x100b0aec]
cmp dword [eax + 0x5c], 0
jne 0x1005015a
mov eax, dword [ebp - 0xc]
jmp 0x10050493
push 0x20
call dword [0x100b09b0]
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10050174
push 0x1b
pop eax
jmp 0x10050493
push 0x20
push dword [ebp - 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [0x100b0aec]
call dword [eax + 0x5c]
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1005019b
mov eax, dword [ebp - 0x1c]
jmp 0x10050493
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20
push dword [ebp - 0x18]
call fcn.10071dc8
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call dword [0x100b09b8]
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
jne 0x100501b3
cmp dword [ebp - 0x1c], 0
je 0x100501d3
mov eax, dword [ebp - 0x1c]
jmp 0x10050493
xor eax, eax
jne 0x100501d3
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 0x100501e4
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 [0x100b09b0]
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x10050232
push dword [ebp - 0x2c]
call dword [0x100b09b8]
pop ecx
and dword [ebp - 0x2c], 0
xor eax, eax
jne 0x10050218
push 0x1b
pop eax
jmp 0x10050493
push dword [ebp - 0x40]
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call fcn.100229f0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
push str._sha256__
push dword [ebp - 0x28]
call fcn.10023c30
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1005026e
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
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 0x1005027e
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 0x100502c4
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
push dword [ebp - 0x2c]
call fcn.10021add
add esp, 0xc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x100502c4
and dword [ebp - 0xc], 0
jmp 0x100502f9
cmp dword [ebp - 0x10], 0
je 0x100502e9
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0x3b
push 0x100b1370
push dword [ebp - 0x10]
call fcn.10023c30
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x10], 0
je 0x100502f9
cmp dword [ebp - 0x28], 0
jne 0x10050249
push dword [ebp - 0x2c]
call dword [0x100b09b8]
pop ecx
and dword [ebp - 0x2c], 0
xor eax, eax
jne 0x100502f9
push dword [ebp - 0x30]
call dword [0x100b09b8]
pop ecx
and dword [ebp - 0x30], 0
xor eax, eax
jne 0x1005030b
mov eax, dword [ebp - 0xc]
jmp 0x10050493
push 0x100b136c
push dword [ebp + 0xc]
call fcn.1006731a
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10050345
mov eax, dword [ebp - 0xc]
jmp 0x10050493
push 2
push 0
push dword [ebp - 0x14]
call fcn.1002b933
add esp, 0xc
test eax, eax
je 0x1005035d
jmp 0x10050463
push dword [ebp - 0x14]
call fcn.1002bfc1
pop ecx
mov dword [ebp - 0x3c], eax
push 0
push 0
push dword [ebp - 0x14]
call fcn.1002b933
add esp, 0xc
test eax, eax
je 0x10050381
jmp 0x10050463
cmp dword [ebp - 0x3c], 0
jl 0x10050390
cmp dword [ebp - 0x3c], 0x100000
jle 0x10050395
jmp 0x10050463
mov eax, dword [ebp - 0x3c]
cdq
push edx
push eax
call fcn.10057c8d
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x34]
jbe 0x100503b2
jmp 0x10050463
mov eax, dword [ebp - 0x34]
inc eax
push eax
call dword [0x100b09b0]
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100503cc
jmp 0x10050463
push dword [ebp - 0x14]
push 1
push dword [ebp - 0x34]
push dword [ebp - 8]
call fcn.1002b441
add esp, 0x10
cmp eax, 1
je 0x100503e6
jmp 0x10050463
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x34]
jne 0x1005040e
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.10021add
add esp, 0xc
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x1005040c
and dword [ebp - 0xc], 0
jmp 0x10050463
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.10050495
add esp, 0xc
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x10050435
jmp 0x10050463
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x64]
jne 0x1005045b
push dword [ebp + 0x14]
push dword [ebp - 0x38]
push dword [ebp + 0x10]
call fcn.10021add
add esp, 0xc
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x1005045b
and dword [ebp - 0xc], 0
xor eax, eax
jne 0x10050345
push dword [ebp - 8]
call dword [0x100b09b8]
pop ecx
and dword [ebp - 8], 0
xor eax, eax
jne 0x10050463
push dword [ebp - 0x38]
call dword [0x100b09b8]
pop ecx
and dword [ebp - 0x38], 0
xor eax, eax
jne 0x10050475
push dword [ebp - 0x14]
call fcn.1002b5f3
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret