Function at 0x4063de
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x41ad46
call fcn.0041a140
sub esp, 0x6e4
mov eax, dword [0x429080]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x208
xor ebx, ebx
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x6f0]
push ebx
push eax
mov dword [ebp - 0x18], ebx
call sub.MMVCR70.dll_memset
push esi
lea eax, [ebp - 0x2e0]
push ebx
push eax
call sub.MMVCR70.dll_memset
push esi
lea eax, [ebp - 0x4e8]
push ebx
push eax
call sub.MMVCR70.dll_memset
add esp, 0x24
lea eax, [ebp - 0x6f0]
push eax
mov esi, 0x104
push esi
call dword [0x429100]
lea eax, [ebp - 0x2e0]
push eax
push ebx
push 0x41ca98
lea eax, [ebp - 0x6f0]
push eax
mov dword [ebp - 4], ebx
call dword [0x4290fc]
test eax, eax
jne 0x40648d
lea eax, [ebp - 0x6f0]
push eax
push str._VerifySignedFile__GetTempFileName_failed__tempdir_s
call fcn.00419ffe
pop ecx
pop ecx
mov dword [ebp - 0x2c], ebx
push 0x421d30
lea eax, [ebp - 0x2c]
jmp 0x4066de
mov edi, dword [sym.imp.MMVCR70.dll__wfopen]
push 0x41c2cc
push dword [ebp + 8]
call edi
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
je 0x4066c4
push esi
lea ecx, [ebp - 0x4e8]
push ecx
push eax
call fcn.00405cab
add esp, 0xc
test al, al
jne 0x4064db
push str._VerifySignedFile__ExtractFileFromStream_failed
call fcn.00419ffe
mov dword [ebp - 0x24], ebx
mov dword [esp], 0x421d30
lea eax, [ebp - 0x24]
jmp 0x4066de
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00405cab
add esp, 0xc
test al, al
jne 0x40650a
push str._VerifySignedFile__ExtractFileFromStream_failed
call fcn.00419ffe
mov dword [ebp - 0x1c], ebx
mov dword [esp], 0x421d30
lea eax, [ebp - 0x1c]
jmp 0x4066de
push dword [ebp - 0x18]
mov esi, dword [sym.imp.MMVCR70.dll_fclose]
call esi
lea eax, [ebp - 0x2e0]
mov dword [esp], 0x41d994
push eax
call edi
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x406550
lea eax, [ebp - 0x2e0]
push eax
push str._VerifySignedFile__open_of_public_key_file_failed__file_s
call fcn.00419ffe
and dword [ebp - 0x20], ebx
pop ecx
pop ecx
push 0x421d30
lea eax, [ebp - 0x20]
jmp 0x4066de
push ebx
mov edi, str.305A300D06092A864886F70D010101050003490030460241009A4EB35E707A39229908D450C09BF349FD7F1D553DFB69D63BE1D2C0CEFC7D63C51A7CE95992E701BDA1B45E64D1BE756EA4C66831BA77C318EF6C77F43E130B020111
push edi
call sub.MMVCR70.dll_strlen
pop ecx
push eax
push 1
push edi
call dword [sym.imp.MMVCR70.dll_fwrite]
push ebx
call esi
add esp, 0x14
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
mov esi, dword [sym.imp.CoreDll.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_mfConvertTToMBCS_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int_]
xor ebx, ebx
push ebx
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 1
call esi
add esp, 0xc
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 3
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
push dword [ebp + 0xc]
lea ecx, [ebp - 0xa0]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
push ebx
push eax
lea eax, [ebp - 0x68]
push eax
mov byte [ebp - 4], 4
call esi
add esp, 0xc
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 6
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea eax, [ebp - 0x4e8]
push eax
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_unsigned_short_int_const__]
push ebx
push eax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 7
call esi
add esp, 0xc
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 9
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MMVCP70.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [ebp - 0x68]
mov edi, eax
call dword [sym.imp.MMVCP70.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [ebp - 0x84]
mov esi, eax
call dword [sym.imp.MMVCP70.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push edi
push esi
push eax
call fcn.00402826
add esp, 0xc
test al, al
jne 0x406657
push str._VerifySignedFile__RSAVerifyFile_failed
call fcn.00419ffe
mov dword [ebp - 0x28], ebx
mov dword [esp], 0x421d30
lea eax, [ebp - 0x28]
jmp 0x4066de
lea eax, [ebp - 0x2e0]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406675
lea eax, [ebp - 0x2e0]
push eax
call dword [0x4290d4]
lea eax, [ebp - 0x4e8]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406693
lea eax, [ebp - 0x4e8]
push eax
call dword [0x4290d4]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x84]
call dword [sym.imp.MMVCP70.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x40674e
push dword [ebp + 8]
push str._VerifySignedFile__open_of_file_failed__file_s
call fcn.00419ffe
pop ecx
pop ecx
mov dword [ebp - 0x30], ebx
push 0x421d30
lea eax, [ebp - 0x30]
push eax
call sub.MMVCR70.dll__CxxThrowException
lea eax, [ebp - 0x2e0]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406702
lea eax, [ebp - 0x2e0]
push eax
call dword [0x4290d4]
push dword [ebp + 0xc]
call fcn.004059d7
test eax, eax
pop ecx
je 0x406718
push dword [ebp + 0xc]
call dword [0x4290d4]
lea eax, [ebp - 0x4e8]
push eax
call fcn.004059d7
test eax, eax
pop ecx
je 0x406736
lea eax, [ebp - 0x4e8]
push eax
call dword [0x4290d4]
cmp dword [ebp - 0x18], 0
je 0x406746
push dword [ebp - 0x18]
call dword [sym.imp.MMVCR70.dll_fclose]
pop ecx
mov eax, 0x40674c
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0041a123
pop edi
pop esi
pop ebx
leave
ret