Function at 0x40f720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.004234e2
mov ebx, eax
add esp, 0xc
cmp ebx, esi
mov dword [ebp + 8], ebx
jge 0x40f755
or eax, 0xffffffff
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x14]
push 8
push ecx
push ebx
call fcn.00420c15
add esp, 0xc
cmp eax, 8
jne 0x40f9f3
mov ecx, 2
mov edi, str.__arch__n
lea esi, [ebp - 0x14]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x40f9f3
mov dword [ebp - 4], eax
jmp 0x40f78c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 0
push eax
push ebx
call fcn.00422a7c
add esp, 0xc
test eax, eax
jl 0x40f9f3
lea ecx, [ebp - 0x64]
push 0x3c
push ecx
push ebx
call fcn.00420c15
add esp, 0xc
test eax, eax
je 0x40f9de
cmp eax, 0x3c
jne 0x40f9f3
lea edx, [ebp - 0x64]
push 0x10
lea eax, [ebp - 0x28]
push edx
push eax
lea edi, [ebp - 0x28]
call fcn.0041a290
add esp, 0xc
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov byte [edx], 0
cmp edx, ecx
jbe 0x40f7ed
mov al, byte [edx - 1]
dec edx
cmp al, 0x20
je 0x40f7db
mov esi, 0x42c228
lea eax, [ebp - 0x28]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40f819
test cl, cl
je 0x40f815
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40f819
add eax, 2
add esi, 2
test cl, cl
jne 0x40f7f5
xor eax, eax
jmp 0x40f81e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f85b
mov esi, str.ARFILENAMES_
lea eax, [ebp - 0x28]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40f84e
test cl, cl
je 0x40f84a
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40f84e
add eax, 2
add esi, 2
test cl, cl
jne 0x40f82a
xor eax, eax
jmp 0x40f853
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40f85b
xor ebx, ebx
jmp 0x40f860
mov ebx, 1
cmp byte [edx], 0x2f
jne 0x40f868
mov byte [edx], 0
mov al, byte [ebp - 0x28]
test ebx, ebx
jne 0x40f890
cmp al, 0x20
je 0x40f877
cmp al, 0x2f
jne 0x40f890
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x40f890
lea edx, [ebp - 0x27]
push edx
call fcn.0041b9c5
mov edi, eax
add esp, 4
add edi, esi
jmp 0x40f8d7
cmp al, 0x23
jne 0x40f8de
cmp byte [ebp - 0x27], 0x31
jne 0x40f8de
cmp byte [ebp - 0x26], 0x2f
jne 0x40f8de
lea eax, [ebp - 0x25]
push eax
call fcn.0041b9c5
mov esi, eax
add esp, 4
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.0041a630
mov ecx, dword [ebp + 8]
mov edi, esp
push esi
push edi
push ecx
call fcn.00420c15
add esp, 0xc
cmp eax, esi
jne 0x40f9c0
mov byte [esi + edi], 0
mov dword [ebp - 8], 1
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x3c]
push edx
push 0x42d6e0
push eax
call fcn.0041c23b
lea ecx, [ebp - 0x34]
push ecx
call fcn.0041b93a
mov edx, dword [ebp + 0x10]
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x42]
push eax
push ecx
call fcn.0041b9c5
add esp, 4
lea edx, [ebp - 0x48]
push eax
push edx
call fcn.0041b9c5
add esp, 4
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0041b93a
add esp, 4
xor edx, edx
push eax
mov eax, dword [ebp - 4]
push esi
lea ecx, [eax + 0x3c]
push ecx
push eax
mov eax, dword [ebp - 8]
test eax, eax
mov eax, dword [ebp + 8]
sete dl
push edx
push edi
push eax
call dword [ebp + 0xc]
mov edi, eax
add esp, 0x2c
test edi, edi
jne 0x40f9c6
test ebx, ebx
je 0x40f99b
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.0041a630
mov ebx, dword [ebp + 8]
mov edi, esp
push esi
push edi
push ebx
mov dword [ebp - 0xc], edi
call fcn.00420c15
add esp, 0xc
cmp eax, esi
jne 0x40f9f3
lea ecx, [esi + edi]
mov eax, edi
cmp edi, ecx
jae 0x40f99b
cmp byte [eax], 0xa
jne 0x40f996
mov dl, byte [eax - 1]
mov byte [eax], 0
cmp dl, 0x2f
jne 0x40f996
mov byte [eax - 1], 0
inc eax
cmp eax, ecx
jb 0x40f982
mov ecx, dword [ebp - 4]
lea esi, [ecx + esi + 0x3c]
mov dword [ebp - 4], esi
and esi, 0x80000001
jns 0x40f9b2
dec esi
or esi, 0xfffffffe
inc esi
je 0x40f789
inc dword [ebp - 4]
jmp 0x40f789
mov edx, dword [ebp + 8]
push edx
jmp 0x40f9f4
mov eax, dword [ebp + 8]
push eax
call fcn.00420a2e
add esp, 4
mov eax, edi
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00420a2e
add esp, 4
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00420a2e
add esp, 4
mov eax, 0xfffffffe
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret