Function at 0x792201a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x64
mov ebx, dword [ebp + 8]
test byte [0x7922a48c], 8
jne 0x79220212
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
je 0x79220255
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x14]
cmp eax, 2
je 0x79220570
cmp eax, 5
je 0x79220460
cmp eax, 1
je 0x792202c1
movzx edx, byte [0x7922a48c]
mov edi, 0x57
test dl, 1
jne 0x79220623
mov dword [ecx + 0x80], edi
mov esi, 1
and edx, 8
jne 0x79220270
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x7922cc19
mov dword [esp + 0x10], 0x25b
mov dword [esp + 0xc], str.SoftpubLoadMessage
mov dword [esp + 8], 0x7922cb49
mov dword [esp + 4], 0x7922a48c
mov dword [esp], 3
call sym._ros_dbg_log
mov ecx, dword [ebx + 0x2c]
test ecx, ecx
jne 0x792201c0
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x80]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0x7922cc4b
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0x272
mov dword [esp + 0xc], str.SoftpubLoadMessage
mov dword [esp + 8], 0x7922cb49
mov dword [esp + 4], 0x7922a48c
mov dword [esp], 3
call sym._ros_dbg_log
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov esi, dword [edx + 0x18]
test esi, esi
je 0x79220670
mov eax, dword [esi + 8]
lea edx, [eax - 1]
cmp edx, 0xfffffffd
jbe 0x79220335
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._CreateFileW_28
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
sub esp, 0x1c
mov edx, dword [eax + 0x18]
cmp dword [edx + 8], 0xffffffff
je 0x79220840
mov dword [ebx + 8], 1
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
lea edx, [ebx + 0x60]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._GetFileTime_16
sub esp, 0x10
test byte [0x7922a48c], 8
je 0x792203a0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], str.returning__d_n
mov dword [esp + 0x10], 0x67
mov dword [esp + 0xc], str.SOFTPUB_OpenFile
mov dword [esp + 8], 0x7922cb49
mov dword [esp + 4], 0x7922a48c
mov dword [esp], 3
call sym._ros_dbg_log
lea esi, [esi]
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x54]
mov edx, dword [edx + 0x18]
cmp dword [edx], 0xf
jbe 0x792206d4
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x792206d4
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov edx, dword [ecx + 4]
mov dword [eax + 8], edx
mov edx, dword [ecx + 8]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0x10], edx
test byte [0x7922a48c], 8
jne 0x792207f0
mov eax, dword [ebx + 0x24]
lea edx, [ebx + 0x54]
call sym._SOFTPUB_GetSIP.isra.2
mov edi, eax
test eax, eax
jne 0x79220745
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, ebx
call sym._SOFTPUB_GetMessageFromFile
mov edi, eax
test eax, eax
jne 0x79220745
mov eax, ebx
call sym._SOFTPUB_CreateStoreFromMessage
mov edi, eax
test eax, eax
jne 0x79220745
mov eax, ebx
call sym._SOFTPUB_DecodeInnerContent
mov edi, eax
test eax, eax
jne 0x79220745
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + 8]
mov eax, ebx
call sym._SOFTPUB_VerifyImageHash
mov edi, eax
test eax, eax
jne 0x79220745
movzx edx, byte [0x7922a48c]
xor esi, esi
jmp 0x79220201
mov eax, dword [edx + 0x18]
test eax, eax
je 0x79220670
cmp dword [eax], 0xb
jbe 0x79220670
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x792207e0
xor eax, eax
mov ecx, 0xa
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], 0x2c
mov eax, dword [edx + 0x18]
cmp dword [eax], 0x1b
jbe 0x79220790
mov edi, dword [eax + 0x18]
test edi, edi
je 0x79220790
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x64], edx
lea eax, [ebp - 0x40]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [esi + 0x10]
sub esp, 0x10
test eax, eax
je 0x79220560
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x24]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], edx
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [eax + 0x14]
mov edx, dword [ebx + 4]
sub esp, 0x14
mov edx, dword [edx + 0x18]
cmp dword [edx], 0x13
jbe 0x792207d0
test eax, eax
je 0x79220560
mov ecx, dword [edx + 0xc]
xor esi, esi
test ecx, ecx
jne 0x7922053f
jmp 0x7922044f
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x18]
cmp esi, dword [edx + 0xc]
jae 0x7922044f
mov edx, dword [edx + 0x10]
mov eax, dword [ebx + 0x24]
mov edx, dword [edx + esi*4]
mov dword [esp], ebx
add esi, 1
mov dword [esp + 4], edx
call dword [eax + 0xc]
sub esp, 8
test eax, eax
jne 0x79220530
lea esi, [esi]
call sym._GetLastError_0
mov edi, eax
jmp 0x7922060a
mov eax, dword [edx + 0x18]
test eax, eax
je 0x792206c0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._CreateFileW_28
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x79220560
mov eax, dword [ebx + 0x54]
mov dword [esp + 4], esi
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._CryptSIPRetrieveSubjectGuid_12
sub esp, 0xc
test eax, eax
je 0x792207c0
mov eax, dword [ebx + 0x24]
lea edx, [ebx + 0x54]
call sym._SOFTPUB_GetSIP.isra.2
mov edi, eax
test eax, eax
je 0x79220681
mov dword [esp], esi
call sym._CloseHandle_4
sub esp, 4
movzx edx, byte [0x7922a48c]
xor esi, esi
test edi, edi
je 0x79220201
mov ecx, dword [ebx + 0x2c]
jmp 0x792201f6
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x7922cc35
mov dword [esp + 0x10], 0x26c
mov dword [esp + 0xc], str.SoftpubLoadMessage
mov dword [esp + 8], 0x7922cb49
mov dword [esp + 4], 0x7922a48c
mov dword [esp], 0
call sym._ros_dbg_log
mov ecx, dword [ebx + 0x2c]
movzx edx, byte [0x7922a48c]
jmp 0x792201f6
movzx edx, byte [0x7922a48c]
mov edi, 0x57
jmp 0x792201f6
mov eax, dword [ebx + 4]
mov edx, esi
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 8]
mov eax, ebx
call sym._SOFTPUB_GetMessageFromFile
mov edi, eax
test eax, eax
jne 0x792205ff
mov eax, ebx
call sym._SOFTPUB_CreateStoreFromMessage
mov edi, eax
test eax, eax
jne 0x792205ff
mov eax, ebx
call sym._SOFTPUB_DecodeInnerContent
mov edi, eax
jmp 0x792205ff
mov dword [esp], 0x57
call sym._SetLastError_4
sub esp, 4
jmp 0x7922044f
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [edx + 8]
mov dword [esp + 4], eax
mov eax, dword [edx + 4]
mov dword [esp], eax
call sym._CryptSIPRetrieveSubjectGuid_12
sub esp, 0xc
test eax, eax
jne 0x792203d4
call sym._GetLastError_0
mov edi, eax
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._GetFileSizeEx_8
sub esp, 8
test eax, eax
movzx eax, byte [0x7922a48c]
je 0x79220859
and eax, 8
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x40]
jne 0x7922085c
mov edi, 0x800b0003
test al, al
jne 0x792207f2
mov eax, dword [ebx + 8]
test eax, eax
je 0x7922065b
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x7922065b
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._CloseHandle_4
mov eax, dword [ebx + 4]
movzx edx, byte [0x7922a48c]
sub esp, 4
mov eax, dword [eax + 0x18]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebx + 0x2c]
mov dword [ebx + 8], 0
jmp 0x792201f6
lea esi, [ebp - 0x50]
mov dword [esp], esi
call sym._GetSystemTime_4
lea eax, [ebp - 0x3c]
sub esp, 4
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._SystemTimeToFileTime_8
mov esi, dword [ebx + 0x24]
sub esp, 8
jmp 0x792204b5
call sym._GetLastError_0
mov edi, eax
jmp 0x792205ff
test eax, eax
jne 0x7922044f
jmp 0x79220560
movzx edx, byte [0x7922a48c]
jmp 0x79220201
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], str.returning__d_n
mov dword [esp + 0x10], 0x8b
mov dword [esp + 0xc], str.SOFTPUB_GetFileSubject
mov dword [esp + 8], 0x7922cb49
mov dword [esp + 4], 0x7922a48c
mov dword [esp], 3
call sym._ros_dbg_log
test edi, edi
jne 0x79220745
jmp 0x792203e1
call sym._GetLastError_0
mov edi, eax
test eax, eax
jne 0x79220862
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 8]
jmp 0x79220335
and eax, 8
test al, al
je 0x7922082a
jmp 0x792207f2
test byte [0x7922a48c], 8
je 0x79220745
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.returning__d_n
mov dword [esp + 0x10], 0x67
mov dword [esp + 0xc], str.SOFTPUB_OpenFile
mov dword [esp + 8], 0x7922cb49
mov dword [esp + 4], 0x7922a48c
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x79220745