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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov ebx, dword [ebp + 0xc]
test byte [0x7922a138], 8
jne 0x79217df0
mov esi, dword [ebp + 8]
test esi, esi
je 0x79217fd0
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x79217c72
mov dword [ebp + 0x18], 0x10001
mov eax, ebx
and eax, 2
cmp eax, 1
sbb eax, eax
and eax, 0xfffffffc
add eax, 7
and ebx, 1
jne 0x79217de0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
je 0x79217dd3
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov esi, eax
mov dword [ebp - 0x18], eax
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x79217fa0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptMsgOpenToDecode_24
sub esp, 0x18
mov edi, eax
test eax, eax
je 0x79217f60
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], ebx
call sym._ReadFile_20
sub esp, 0x14
test eax, eax
je 0x79217d9c
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], 1
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edi
call sym._CryptMsgUpdate_16
sub esp, 0x10
test eax, eax
jne 0x79217e60
mov dword [esp], ebx
mov ebx, 0xffffffff
call sym._CloseHandle_4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], edi
call sym._CryptMsgClose_4
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
or eax, 1
jmp 0x79217c8b
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], str._s___x___lx___x___x_n
mov dword [esp + 0x10], 0x35e
mov dword [esp + 0xc], str.CryptCATOpen
mov dword [esp + 8], 0x7922b851
mov dword [esp + 4], 0x7922a138
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x79217c59
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], ebx
call sym._CloseHandle_4
mov dword [ebp - 0x18], 4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], 0x2c
mov dword [esp + 4], 8
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x792180d0
mov dword [eax + 4], edi
mov eax, dword [ebp + 0x18]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1f
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
je 0x79217f50
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x79217ffb
xor edx, edx
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov ebx, edx
jmp 0x79217f18
mov eax, dword [ebp - 0x1c]
add esi, 1
add ebx, dword [ebp - 0x18]
mov eax, dword [eax + 0x24]
cmp eax, esi
jbe 0x79217ff0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0x20
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
jne 0x79217f04
mov dword [esp], edi
mov ebx, dword [ebp - 0x1c]
call sym._CryptMsgClose_4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
jmp 0x79217f74
mov dword [esp], ebx
call sym._CloseHandle_4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov ebx, 0xffffffff
mov dword [esp], eax
call sym._HeapFree_12
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp], ebx
call sym._CloseHandle_4
sub esp, 4
mov ebx, 0xffffffff
mov dword [esp], 0xe
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp], 0x57
mov ebx, 0xffffffff
call sym._SetLastError_4
sub esp, 4
jmp 0x79217dd3
mov edx, ebx
lea eax, [eax + eax*2]
mov ebx, dword [ebp - 0x1c]
lea esi, [edx + eax*8]
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov dword [ebx + 0x28], eax
test eax, eax
je 0x79218291
mov ecx, dword [ebx + 0x24]
xor esi, esi
lea edx, [ecx + ecx*2]
lea eax, [eax + edx*8]
test ecx, ecx
je 0x792180e2
mov dword [ebp - 0x1c], ebx
mov ebx, esi
mov esi, eax
jmp 0x79218074
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x20
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
je 0x7921809e
mov eax, dword [ebp - 0x1c]
add esi, dword [ebp - 0x18]
add ebx, 1
cmp dword [eax + 0x24], ebx
jbe 0x792180e0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x20
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
jne 0x79218040
mov dword [esp], edi
mov ebx, dword [ebp - 0x1c]
call sym._CryptMsgClose_4
mov esi, dword [ebx + 0x28]
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
jmp 0x79217f50
mov dword [esp], edi
call sym._CryptMsgClose_4
jmp 0x79217fa8
mov ebx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
je 0x79218288
mov esi, dword [ebp - 0x14]
call sym._GetProcessHeap_0
mov dword [esp + 4], 0
mov dword [esp + 8], esi
mov dword [esp], eax
call sym._HeapAlloc_12
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x7921827b
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
je 0x79218272
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
je 0x79218272
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapAlloc_12
sub esp, 0xc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x792183f1
lea eax, [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 2
mov dword [esp + 0xc], eax
mov dword [esp], edi
call sym._CryptMsgGetParam_20
sub esp, 0x14
test eax, eax
jne 0x792182d1
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapFree_12
mov dword [ebx + 0xc], 0
sub esp, 0xc
mov dword [esp], edi
call sym._CryptMsgClose_4
mov esi, dword [ebx + 0x28]
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov esi, dword [ebx + 0xc]
sub esp, 0xc
jmp 0x792180af
mov dword [ebp - 0x1c], 0
jmp 0x792181fe
mov dword [esp], 0xe
call sym._SetLastError_4
push edx
mov dword [ebx + 0xc], 0
jmp 0x79218240
mov dword [esp], edi
call sym._CryptMsgClose_4
sub esp, 4
call sym._GetProcessHeap_0
mov dword [esp + 8], ebx
mov ebx, 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov dword [esp], 0xe
call sym._SetLastError_4
sub esp, 4
jmp 0x79217dd3
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x14]
mov dword [esp + 4], esi
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], 0
mov dword [esp], eax
call sym._CryptDecodeObject_28
sub esp, 0x1c
test eax, eax
je 0x792181fe
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapAlloc_12
sub esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
je 0x792183f1
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sym._CryptDecodeObject_28
sub esp, 0x1c
test eax, eax
je 0x79218380
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x10], eax
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._HeapFree_12
mov eax, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CryptSIPRetrieveSubjectGuid_12
sub esp, 0xc
test eax, eax
je 0x79218240
mov dword [ebx], 0x43415443
jmp 0x79217dd3
mov dword [esp], 0xe
call sym._SetLastError_4
push eax
jmp 0x792181fe