Function at 0x4968b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], 0
push dword [esi]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4968fa
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xc], 0x52
jne 0x4968e5
cmp byte [ebp - 0xb], 0x49
jne 0x4968e5
cmp byte [ebp - 0xa], 0x46
jne 0x4968e5
cmp byte [ebp - 9], 0x46
jne 0x4968e5
push esi
call fcn.0045d030
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x4968e5
cmp byte [ebp - 0xc], 0x43
jne 0x4968e5
mov al, byte [ebp - 0xb]
cmp al, 0x4d
jne 0x496943
cmp byte [ebp - 0xa], 0x58
je 0x49694d
jmp 0x4968e5
cmp al, 0x44
jne 0x4968e5
cmp byte [ebp - 0xa], 0x52
jne 0x4968e5
push edi
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
push dword [esi]
call fcn.00595867
add esp, 4
test eax, eax
jne 0x496a9a
mov edi, edi
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x496ac4
push esi
call fcn.0045d030
add esp, 4
mov edi, eax
cmp byte [ebp - 0xc], 0x44
jne 0x4969b1
cmp byte [ebp - 0xb], 0x49
jne 0x4969b1
cmp byte [ebp - 0xa], 0x53
jne 0x4969b1
cmp byte [ebp - 9], 0x50
je 0x496a97
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x496ac4
cmp byte [ebp - 0xc], 0x70
jne 0x496a73
cmp byte [ebp - 0xb], 0x61
jne 0x496a73
cmp byte [ebp - 0xa], 0x67
jne 0x496a73
cmp byte [ebp - 9], 0x65
jne 0x496a73
cmp byte [ebp - 8], 0x69
jne 0x496a73
cmp byte [ebp - 7], 0x64
jne 0x496a73
cmp byte [ebp - 6], 0x20
jne 0x496a73
cmp byte [ebp - 5], 0x20
jne 0x496a73
push dword [esi]
call fcn.005960c7
push esi
mov ebx, eax
call fcn.0045d030
push eax
push esi
call fcn.0045d3f0
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x20
test eax, eax
je 0x496ac4
push esi
call fcn.0045d030
add esp, 4
mov edi, eax
cmp byte [ebp - 0xc], 0x69
jne 0x496a5e
cmp byte [ebp - 0xb], 0x6d
jne 0x496a5e
cmp byte [ebp - 0xa], 0x68
jne 0x496a5e
cmp byte [ebp - 9], 0x64
je 0x496abe
push dword [esi]
call fcn.005960c7
sub eax, ebx
push eax
push esi
call fcn.0045d3f0
add esp, 0xc
jmp 0x496a7e
push 0xfffffffffffffff8
push esi
call fcn.0045d3f0
add esp, 8
push edi
push esi
call fcn.0045d3f0
push dword [esi]
call fcn.00595867
add esp, 0xc
test eax, eax
je 0x496970
mov ebx, dword [ebp - 0x14]
push dword [esi]
call fcn.00595867
add esp, 4
test eax, eax
je 0x496ada
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0xd], 1
jmp 0x496a97
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0xd], 0
push esi
je 0x496b09
call fcn.0045d210
push esi
call fcn.0045d030
push esi
call fcn.0045d210
push esi
call fcn.0045d210
push esi
call fcn.0045d030
add esp, 0x14
mov dword [ebx], 8
jmp 0x496b13
call fcn.0045d030
add esp, 4
mov dword [ebx], eax
push esi
call fcn.0045d030
push esi
mov dword [ebx + 4], eax
call fcn.0045d030
push esi
mov dword [ebx + 8], eax
call fcn.0045d030
push esi
mov dword [ebx + 0xc], eax
call fcn.0045d210
push esi
mov word [ebx + 0x10], ax
call fcn.0045d210
push esi
mov word [ebx + 0x12], ax
call fcn.0045d030
push esi
mov dword [ebx + 0x14], eax
call fcn.0045d030
push esi
mov dword [ebx + 0x18], eax
call fcn.0045d030
push esi
mov dword [ebx + 0x1c], eax
call fcn.0045d030
push esi
mov dword [ebx + 0x20], eax
call fcn.0045d030
push esi
mov dword [ebx + 0x24], eax
call fcn.0045d030
mov dword [ebx + 0x28], eax
push dword [esi]
call fcn.00595867
mov ecx, dword [ebp - 4]
add esp, 0x30
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
pop esi
and eax, 4
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp