Function at 0x4863e0
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 0x48642a
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 0x486415
cmp byte [ebp - 0xb], 0x49
jne 0x486415
cmp byte [ebp - 0xa], 0x46
jne 0x486415
cmp byte [ebp - 9], 0x46
jne 0x486415
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 0x486415
cmp byte [ebp - 0xc], 0x43
jne 0x486415
cmp byte [ebp - 0xb], 0x44
jne 0x486415
cmp byte [ebp - 0xa], 0x52
jne 0x486415
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 0x4865c2
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4865ec
push esi
call fcn.0045d030
add esp, 4
mov edi, eax
cmp byte [ebp - 0xc], 0x44
jne 0x4864d2
cmp byte [ebp - 0xb], 0x49
jne 0x4864d2
cmp byte [ebp - 0xa], 0x53
jne 0x4864d2
cmp byte [ebp - 9], 0x50
je 0x4865bf
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4865ec
cmp byte [ebp - 0xc], 0x70
jne 0x486594
cmp byte [ebp - 0xb], 0x61
jne 0x486594
cmp byte [ebp - 0xa], 0x67
jne 0x486594
cmp byte [ebp - 9], 0x65
jne 0x486594
cmp byte [ebp - 8], 0x69
jne 0x486594
cmp byte [ebp - 7], 0x64
jne 0x486594
cmp byte [ebp - 6], 0x20
jne 0x486594
cmp byte [ebp - 5], 0x20
jne 0x486594
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 0x4865ec
push esi
call fcn.0045d030
add esp, 4
mov edi, eax
cmp byte [ebp - 0xc], 0x69
jne 0x48657f
cmp byte [ebp - 0xb], 0x6d
jne 0x48657f
cmp byte [ebp - 0xa], 0x68
jne 0x48657f
cmp byte [ebp - 9], 0x64
je 0x4865e6
push dword [esi]
call fcn.005960c7
sub eax, ebx
push eax
push esi
call fcn.0045d3f0
add esp, 0xc
jmp 0x48659f
push 0xfffffffffffffff8
push esi
call fcn.0045d3f0
add esp, 8
push edi
push esi
call fcn.0045d3f0
add esp, 8
test eax, eax
jne 0x4865bf
push dword [esi]
call fcn.00595867
add esp, 4
test eax, eax
je 0x486491
mov ebx, dword [ebp - 0x14]
push dword [esi]
call fcn.00595867
add esp, 4
test eax, eax
je 0x486602
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 0x4865bf
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 0x486631
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 0x48663b
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
neg eax
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret