Function at 0x4939d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x5a
mov dword [esp + 8], eax
cmp edi, eax
jne 0x4939f7
pop edi
add esp, 0x18
ret
push ebp
mov ebp, dword [esp + 0x28]
push esi
cmp ebp, eax
je 0x493d18
mov esi, dword [esp + 0x30]
cmp esi, eax
je 0x493d18
push ebx
push 8
push str.sha256__
push edi
call fcn.0058752e
add esp, 0xc
test eax, eax
jne 0x493b60
push 0x20
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x493a7a
push 0x20
push ebx
push esi
push ebp
call fcn.004a5670
mov eax, edi
add esp, 0x10
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x493a50
sub eax, edx
lea esi, [eax + 1]
push esi
call dword [section..data]
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x493a87
push ebx
call dword [0x623004]
add esp, 4
pop ebx
pop esi
pop ebp
mov eax, 0x1b
pop edi
add esp, 0x18
ret
push esi
push edi
push ebp
call fcn.00588160
add esp, 0xc
mov esi, ebp
push str._sha256__
push esi
call fcn.005884d0
mov edi, eax
add esp, 8
test edi, edi
je 0x493aab
mov byte [edi], 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
add esi, 8
push esi
call fcn.004a67b0
add esp, 0xc
test eax, eax
jne 0x493b0a
mov esi, dword [esp + 0x14]
mov ecx, 0x20
cmp dword [esp + 0x2c], ecx
jne 0x493af4
mov edx, ebx
mov eax, esi
sub edx, esi
lea ebx, [ebx]
cmp ecx, 4
jb 0x493b2b
mov ebp, dword [edx + eax]
cmp ebp, dword [eax]
jne 0x493af4
sub ecx, 4
add eax, 4
jmp 0x493ae0
push esi
call dword [0x623004]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], 0
test edi, edi
je 0x493b43
push str.sha256__
push edi
mov byte [edi], 0x3b
call fcn.005884d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x493a94
jmp 0x493b43
xor edi, edi
push esi
mov dword [esp + 0x14], edi
call dword [0x623004]
mov ebp, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x14], edi
push ebx
call dword [0x623004]
push ebp
call dword [0x623004]
mov eax, dword [esp + 0x18]
add esp, 8
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 0x60489c
push edi
call fcn.005867c9
mov ebx, eax
add esp, 8
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x493b83
lea eax, [ebx + 0x5a]
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
push 2
push 0
push ebx
call fcn.005869fa
add esp, 0xc
test eax, eax
jne 0x493ce5
push ebx
call fcn.00586c1c
push 0
push 0
push ebx
mov edi, eax
call fcn.005869fa
add esp, 0x10
test eax, eax
jne 0x493ce5
cmp edi, 0x100000
ja 0x493ce5
mov eax, edi
cdq
push edx
push eax
call fcn.004a6ad0
add esp, 8
mov dword [esp + 0x2c], eax
cmp esi, eax
ja 0x493ce5
inc eax
push eax
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
je 0x493ce5
mov edx, dword [esp + 0x2c]
push ebx
push 1
push edx
push edi
call fcn.00584b8e
add esp, 0x10
cmp eax, 1
jne 0x493ce5
mov eax, dword [esp + 0x2c]
cmp esi, eax
jne 0x493c72
mov ecx, edi
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x493c38
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x493ce5
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x493c20
test eax, eax
je 0x493c68
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x493ce5
cmp eax, 1
jbe 0x493c68
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x493ce5
cmp eax, 2
jbe 0x493c68
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x493ce5
mov dword [esp + 0x10], 0
jmp 0x493ce5
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ebx, edi
mov byte [eax + edi], 0
call fcn.00493900
add esp, 8
test eax, eax
jne 0x493ce1
cmp esi, dword [esp + 0x24]
jne 0x493ce1
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, ebp
cmp esi, 4
jb 0x493cb5
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x493ce1
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x493ca1
test eax, eax
je 0x493cd9
mov dl, byte [ecx]
cmp dl, byte [edi]
jne 0x493ce1
cmp eax, 1
jbe 0x493cd9
mov dl, byte [ecx + 1]
cmp dl, byte [edi + 1]
jne 0x493ce1
cmp eax, 2
jbe 0x493cd9
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x493ce1
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x623004]
mov edx, dword [esp + 0x1c]
push edx
call dword [0x623004]
push ebx
mov dword [esp + 0x24], 0
call fcn.0058392a
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop ebx
pop esi
pop ebp
pop edi
add esp, 0x18
ret
pop esi
pop ebp
mov eax, 0x5a
pop edi
add esp, 0x18
ret