Function at 0x300275d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x38
push ebx
xor eax, eax
push ebp
xor ebx, ebx
mov dword [esp + 0x30], eax
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
push edi
push ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], 3
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x17], al
mov dword [esp + 0x20], ebx
call fcn.30208320
push 0x3e7
call fcn.3007a1f0
add esp, 8
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 0x3e7
cmp eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
je 0x3002764b
mov ecx, 0xf9
mov esi, 0x302951c8
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x3002767a
cmp word [eax], 0
je 0x3002767a
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
call fcn.30026730
test al, al
jne 0x30027676
mov edi, str.VerifyMessage_:_Unable_to_read_external_root_certificate_specified_in_MMS.CFG_by_CodeSignRootCert._n
jmp 0x3002780a
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
push 0
lea edx, [esp + 0x20]
push edx
push 0
push esi
push edi
push 0
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x54], 0x10001
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
jne 0x300276b8
mov edi, str.VerifyMessage_:_CryptVerifyMessageSignature___failed._n
jmp 0x3002780a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.3007a1f0
add esp, 4
test eax, eax
mov dword [esp + 0x5c], eax
jne 0x300276d7
mov edi, str.VerifyMessage_:_Unable_to_allocate_dst._n
jmp 0x3002780a
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push edi
push 0
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
jne 0x300276ff
mov edi, str.VerifyMessage_:_Second_CryptVerifyMessageSignature___failed._n
jmp 0x3002780a
push esi
push edi
push 0
push 0
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptGetMessageCertificates]
mov esi, eax
test esi, esi
mov dword [esp + 0x24], esi
jne 0x30027724
mov edi, str.VerifyMessage_:_CryptGetMessageCertificates___failed._n
jmp 0x3002780a
mov eax, dword [esp + 0x2c]
push ebp
push eax
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x30027747
mov edi, str.VerifyMessage_:_CertCreateCertificateContext___failed._n
jmp 0x3002780a
mov ebp, dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
xor edi, edi
nop
mov ecx, dword [esp + 0x18]
push 0
push ecx
push 0xc0000
push 0
push 0x10001
push esi
call ebp
mov ebx, eax
test ebx, ebx
mov eax, dword [esp + 0x18]
je 0x300277b8
cmp eax, ebx
je 0x300277b8
lea edx, [esp + 0x14]
push edx
push ebx
push eax
mov dword [esp + 0x20], 3
call dword [sym.imp.CRYPT32.dll_CertVerifySubjectCertificateContext]
test eax, eax
je 0x300277b1
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x300277b1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
inc edi
cmp edi, 8
mov dword [esp + 0x18], ebx
jle 0x30027750
mov edi, str.VerifyMessage_:_Certificate_chain_is_too_long._n
jmp 0x3002780a
mov edi, str.VerifyMessage_:_CertVerifySubjectCertificateContext___failed._n
jmp 0x3002780a
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov dword [esp + 0x20], 3
call dword [sym.imp.CRYPT32.dll_CertVerifySubjectCertificateContext]
test eax, eax
je 0x30027805
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x30027805
mov eax, dword [esp + 0x58]
test eax, eax
mov byte [esp + 0x13], 1
mov edi, str.VerifyMessage_:_Message_Verified__n
je 0x300277f5
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x3002780a
mov edx, dword [esp + 0x5c]
mov dword [eax], edx
jmp 0x3002780a
mov edi, str.VerifyMessage_:_Second_CertVerifySubjectCertificateContext___failed._n
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
je 0x3002781b
push eax
call esi
test ebx, ebx
je 0x30027822
push ebx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x3002782d
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x3002783e
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [esp + 0x60]
test al, al
je 0x300278e9
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x30027872
push str.MacromediaFlash_Player
mov ecx, esi
call fcn.30026c80
push eax
mov ecx, esi
call fcn.30026410
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xa4]
push str.Logscodesign.txt
push eax
mov ecx, esi
call fcn.30026410
mov ebx, eax
test ebx, ebx
je 0x300278e9
push 0x10000000
push 4
push 1
push 0x40000000
push ebx
mov ecx, esi
call fcn.30026490
mov esi, eax
test esi, esi
je 0x300278e0
cmp esi, 0xffffffff
je 0x300278e0
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x300278c0
push 0
lea ecx, [esp + 0x64]
push ecx
sub eax, edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.30208320
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
call fcn.30208320
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x18