Function at 0x4e5790
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.0043f0a0
push 0x3e7
call fcn.0043f080
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 0x4e580b
mov ecx, 0xf9
mov esi, 0x5e2d18
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 + 0x58]
test eax, eax
je 0x4e583a
cmp word [eax], 0
je 0x4e583a
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004e46c0
test al, al
jne 0x4e5836
mov ebp, str.VerifyMessage_:_Unable_to_read_external_root_certificate_specified_in_MMS.CFG_by_CodeSignRootCert._n
jmp 0x4e59d5
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
push 0
lea edx, [esp + 0x20]
push edx
push 0
push edi
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x54], 0x10001
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
jne 0x4e5878
mov ebp, str.VerifyMessage_:_CryptVerifyMessageSignature___failed._n
jmp 0x4e59d5
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov esi, dword [esp + 0x1c]
push eax
call fcn.0043f0a0
add esp, 4
test esi, esi
je 0x4e589a
push esi
call fcn.0043f080
add esp, 4
jmp 0x4e589c
xor eax, eax
mov ecx, dword [esp + 0x54]
mov edx, eax
neg edx
sbb edx, edx
and edx, esi
test eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], edx
jne 0x4e58bb
mov ebp, str.VerifyMessage_:_Unable_to_allocate_dst._n
jmp 0x4e59d5
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
push edi
push esi
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptVerifyMessageSignature]
test eax, eax
jne 0x4e58e7
mov ebp, str.VerifyMessage_:_Second_CryptVerifyMessageSignature___failed._n
jmp 0x4e59d5
push edi
push esi
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 0x4e590c
mov ebp, str.VerifyMessage_:_CryptGetMessageCertificates___failed._n
jmp 0x4e59d5
mov ecx, dword [esp + 0x2c]
push ebp
push ecx
push 0x10001
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4e592f
mov ebp, str.VerifyMessage_:_CertCreateCertificateContext___failed._n
jmp 0x4e59d5
mov ebp, dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
xor edi, edi
mov edx, dword [esp + 0x18]
push 0
push edx
push 0xc0000
push 0
push 0x10001
push esi
call ebp
mov ebx, eax
test ebx, ebx
mov eax, dword [esp + 0x18]
je 0x4e599f
cmp eax, ebx
je 0x4e599f
lea ecx, [esp + 0x14]
push ecx
push ebx
push eax
mov dword [esp + 0x20], 3
call dword [sym.imp.CRYPT32.dll_CertVerifySubjectCertificateContext]
test eax, eax
je 0x4e5998
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e5998
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
inc edi
cmp edi, 8
mov dword [esp + 0x18], ebx
jle 0x4e5937
mov ebp, str.VerifyMessage_:_Certificate_chain_is_too_long._n
jmp 0x4e59d5
mov ebp, str.VerifyMessage_:_CertVerifySubjectCertificateContext___failed._n
jmp 0x4e59d5
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 0x4e59d0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e59d0
mov byte [esp + 0x13], 1
mov ebp, str.VerifyMessage_:_Message_Verified__n
jmp 0x4e59d5
mov ebp, str.VerifyMessage_:_Second_CertVerifySubjectCertificateContext___failed._n
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
je 0x4e59e6
push eax
call esi
test ebx, ebx
je 0x4e59ed
push ebx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e59f8
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e5a09
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [esp + 0x5c]
test al, al
je 0x4e5ab9
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0xa0]
test eax, eax
jne 0x4e5a3d
push str.MacromediaFlash_Player
mov ecx, esi
call fcn.004e4c60
push eax
mov ecx, esi
call fcn.004e4370
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0xa0]
push str.Logscodesign.txt
push eax
mov ecx, esi
call fcn.004e4370
mov edi, eax
test edi, edi
je 0x4e5ab9
push 0x10000000
push 4
push 1
push 0x40000000
push edi
mov ecx, esi
call fcn.004e43f0
mov esi, eax
test esi, esi
je 0x4e5ab0
cmp esi, 0xffffffff
je 0x4e5ab0
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebp
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e5a90
push 0
lea ecx, [esp + 0x60]
push ecx
sub eax, edx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0043f0a0
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
call fcn.0043f0a0
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14