Function at 0x76619b86
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp + 0x14], 0xffffffdf
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
test dword [ebp + 0x14], 0xfffe003c
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
jne 0x76619bf8
mov esi, dword [ebp + 0x14]
and esi, 0x800
je 0x76619bc1
call fcn.7661d614
test word [ebp + 0xc], 0xffff
jne 0x76619bcd
or dword [ebp + 0xc], 1
test word [ebp + 0xe], 0xffff
mov eax, 0x10000
jne 0x76619bdd
or dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
and ecx, eax
mov dword [ebp - 0x10], ecx
je 0x76619cbf
mov eax, dword [ebp + 0x14]
test ah, ah
jns 0x76619c02
push 0x80070057
jmp 0x76619e39
test ah, 0x20
je 0x76619c0c
xor eax, eax
inc eax
jmp 0x76619c18
and eax, 0x4000
neg eax
sbb eax, eax
add eax, 4
push edi
shl esi, 0xe
or esi, 0x80
push esi
mov esi, dword [ebp + 0x18]
push eax
push edi
push 1
push 0xc0000000
push esi
call sym.CRYPT32.dll_CreateFileU
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x76619e3f
push edi
push eax
mov dword [ebp - 8], 1
call ebx
test eax, eax
jne 0x76619cfe
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
jmp 0x76619c6b
push 2
pop ebx
sub esi, ebx
cmp word [esi], 0x2e
je 0x76619c96
cmp esi, dword [ebp + 0x18]
ja 0x76619c60
cmp dword [ebp - 0x10], edi
je 0x76619dfc
push dword [ebp + 0x20]
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push edi
push edi
push dword [ebp - 4]
call fcn.76616698
mov esi, eax
jmp 0x76619e06
add esi, ebx
push 0x76619e70
push esi
call fcn.765ea38b
test eax, eax
pop ecx
pop ecx
je 0x76619cba
push 0x76619e68
push esi
call fcn.765ea38b
test eax, eax
pop ecx
pop ecx
jne 0x76619c70
mov dword [ebp - 8], ebx
jmp 0x76619c70
lea eax, [ebp - 0x44]
push eax
push edi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x76619e3f
push edi
shl esi, 0xe
or esi, 0x80
push esi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 0x18]
call sym.CRYPT32.dll_CreateFileU
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x76619e3f
push dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
push esi
push dword [ebp - 4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.76619ab4
test eax, eax
jne 0x76619e03
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x76619e3f
push edi
push dword [ebp - 4]
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x76619e3f
cmp eax, edi
je 0x76619c70
push eax
call fcn.765e44d7
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x76619e3f
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x76619e3f
push dword [ebp + 0x20]
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.766165c6
test eax, eax
je 0x76619da3
mov dword [ebp - 8], 2
jmp 0x76619c70
push edi
push 2
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp + 0xc]
push esi
call sym.CRYPT32.dll_CertAddEncodedCertificateToStore
test eax, eax
jne 0x76619df3
push edi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push edi
push edi
push 0xe
push 0x2102
lea eax, [ebp - 0x20]
push eax
push 2
call sym.CRYPT32.dll_CryptQueryObject
test eax, eax
je 0x76619e34
push edi
push edi
push dword [ebp - 0xc]
push esi
call sym.CRYPT32.dll_I_CertUpdateStore
push edi
push dword [ebp - 0xc]
mov esi, eax
call sym.CRYPT32.dll_CertCloseStore
cmp esi, edi
je 0x76619e3f
cmp dword [ebp - 0x10], edi
je 0x76619dfc
push 5
jmp 0x76619e39
mov eax, dword [ebp + 0x20]
or dword [eax + 0x10], 4
xor esi, esi
inc esi
test byte [ebp + 0x14], 2
je 0x76619e41
mov eax, dword [ebp + 0x18]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
push 0x1000
push dword [ebp + 0x1c]
call sym.CRYPT32.dll_CertSetStoreProperty
jmp 0x76619e41
push 0x80092003
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [ebp - 4], 0xffffffff
je 0x76619e50
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], edi
je 0x76619e5d
push dword [ebp - 0x1c]
call fcn.765e40a0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x1c