Function at 0x4e6170
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.0043f020
push 0x3e7
call fcn.0043f000
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 0x4e61eb
mov ecx, 0xf9
mov esi, 0x5e2de8
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 0x4e621a
cmp word [eax], 0
je 0x4e621a
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
call fcn.004e5040
test al, al
jne 0x4e6216
mov ebp, str.VerifyMessage_:_Unable_to_read_external_root_certificate_specified_in_MMS.CFG_by_CodeSignRootCert._n
jmp 0x4e63b5
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 0x4e6258
mov ebp, str.VerifyMessage_:_CryptVerifyMessageSignature___failed._n
jmp 0x4e63b5
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov esi, dword [esp + 0x1c]
push eax
call fcn.0043f020
add esp, 4
test esi, esi
je 0x4e627a
push esi
call fcn.0043f000
add esp, 4
jmp 0x4e627c
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 0x4e629b
mov ebp, str.VerifyMessage_:_Unable_to_allocate_dst._n
jmp 0x4e63b5
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 0x4e62c7
mov ebp, str.VerifyMessage_:_Second_CryptVerifyMessageSignature___failed._n
jmp 0x4e63b5
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 0x4e62ec
mov ebp, str.VerifyMessage_:_CryptGetMessageCertificates___failed._n
jmp 0x4e63b5
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 0x4e630f
mov ebp, str.VerifyMessage_:_CertCreateCertificateContext___failed._n
jmp 0x4e63b5
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 0x4e637f
cmp eax, ebx
je 0x4e637f
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 0x4e6378
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e6378
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 0x4e6317
mov ebp, str.VerifyMessage_:_Certificate_chain_is_too_long._n
jmp 0x4e63b5
mov ebp, str.VerifyMessage_:_CertVerifySubjectCertificateContext___failed._n
jmp 0x4e63b5
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 0x4e63b0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e63b0
mov byte [esp + 0x13], 1
mov ebp, str.VerifyMessage_:_Message_Verified__n
jmp 0x4e63b5
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 0x4e63c6
push eax
call esi
test ebx, ebx
je 0x4e63cd
push ebx
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4e63d8
push eax
call esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4e63e9
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [esp + 0x5c]
test al, al
je 0x4e6499
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0xa4]
test eax, eax
jne 0x4e641d
push str.MacromediaFlash_Player
mov ecx, esi
call fcn.004e55e0
push eax
mov ecx, esi
call fcn.004e4cf0
mov dword [esi + 0xa4], eax
mov eax, dword [esi + 0xa4]
push str.Logscodesign.txt
push eax
mov ecx, esi
call fcn.004e4cf0
mov edi, eax
test edi, edi
je 0x4e6499
push 0x10000000
push 4
push 1
push 0x40000000
push edi
mov ecx, esi
call fcn.004e4d70
mov esi, eax
test esi, esi
je 0x4e6490
cmp esi, 0xffffffff
je 0x4e6490
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 0x4e6470
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.0043f020
add esp, 4
mov edx, dword [esp + 0x2c]
push edx
call fcn.0043f020
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14