Function at 0x42815b
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x43ecf3
call fcn.0043a940
sub esp, 0xd0
push ebx
push esi
push edi
push str.Please_select_the_certificate_to_export
lea eax, [ebp - 0x4c]
push 0x810c
mov ebx, ecx
push eax
call fcn.00431e3b
and dword [ebp - 4], 0
push str.Error
lea eax, [ebp - 0x38]
push 0x80eb
push eax
call fcn.00431e3b
push str.Success
lea eax, [ebp - 0x64]
push 0x80e8
push eax
mov byte [ebp - 4], 1
call fcn.00431e3b
push str.Exporting
lea eax, [ebp - 0x58]
push 0x812d
push eax
mov byte [ebp - 4], 2
call fcn.00431e3b
add esp, 0x30
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040bd65
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
push 0x110a
push dword [ebx + 0x4b8]
mov byte [ebp - 4], 4
call esi
push 9
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x88]
mov dword [ebp - 0x10], edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x8c]
mov edi, 0x113e
push eax
push 0
push edi
mov dword [ebp - 0x8c], 0x34
push dword [ebx + 0x4b8]
mov dword [ebp - 0x88], edx
call esi
test eax, eax
jne 0x42828f
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0042abe7
add esp, 0xc
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp eax, ecx
je 0x428264
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [ebp - 0x1d]
push edx
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040bdaa
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.0040212c
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebp - 0x2c]
test eax, eax
jne 0x428288
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
test ebx, ebx
jmp 0x428340
cmp dword [ebp - 0x70], 7
je 0x4282d4
cmp dword [ebp - 0x70], 4
je 0x4282d4
cmp dword [ebp - 0x70], 8
je 0x4282d4
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebp - 0x4c]
test eax, eax
jne 0x4282b6
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
test ebx, ebx
je 0x4282bd
mov ebx, dword [ebx + 0x20]
push 0x10040
push eax
push esi
push ebx
call fcn.0040ec0e
add esp, 0x10
xor esi, esi
jmp 0x42835c
mov eax, dword [ebp - 0x68]
push dword [ebp - 0x10]
mov ecx, ebx
mov dword [ebp - 0x3c], eax
call fcn.00422a26
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4282a1
push 0x28
lea eax, [ebp - 0x8c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
push 0
push edi
mov dword [ebp - 0x8c], 0x14
push dword [ebx + 0x4b8]
call esi
xor edi, edi
cmp eax, edi
jne 0x42839f
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebp - 0x38]
cmp eax, edi
jne 0x42833e
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
cmp ebx, edi
jne 0x428346
xor ebx, ebx
jmp 0x428349
mov ebx, dword [ebx + 0x20]
push 0x10040
push eax
push esi
push ebx
call fcn.0040ec0e
add esp, 0x10
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040212c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040212c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040212c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040212c
mov eax, esi
jmp 0x428626
cmp dword [ebp - 0x68], edi
jne 0x4283ce
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebp - 0x38]
cmp eax, edi
jne 0x4283b9
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
cmp ebx, edi
jne 0x4283c1
xor ebx, ebx
jmp 0x4283c4
mov ebx, dword [ebx + 0x20]
push 0x10040
jmp 0x4285dc
push dword [ebp - 0x68]
mov ecx, dword [ebx + 0xb0]
lea esi, [ebx + 0xb0]
call fcn.0042b37a
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push 1
push ecx
mov eax, dword [eax + 8]
push dword [ebp - 0x3c]
mov esi, dword [eax + 0x10]
mov eax, dword [ebx + 0xb8]
push esi
mov dword [ebp - 0x1c], 0x11
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [eax + 0x62]
add esp, 0x10
cmp eax, edi
jne 0x4285b7
cmp dword [ebp - 0x14], edi
je 0x4285b7
push dword [ebp - 0x14]
call sub.MFC42u.DLL_operatornew
lea ecx, [ebp - 0x1c]
push 1
push ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x3c]
mov eax, dword [ebx + 0xb8]
push esi
call dword [eax + 0x62]
push 0x10
mov esi, str.certificate_files_.cer_.cer
pop ecx
lea edi, [ebp - 0xdc]
rep movsd dword es:[edi], dword [esi]
push 0x340
movsw word es:[edi], word [esi]
call sub.MFC42u.DLL_operatornew
add esp, 0x18
mov dword [ebp - 0x10], eax
xor edi, edi
mov byte [ebp - 4], 6
cmp eax, edi
je 0x428487
lea ecx, [ebp - 0xdc]
push edi
push ecx
push 0x2802
push edi
push 0x453f54
push edi
mov ecx, eax
call sub.MFC42u.DLL_CFileDialog::CFileDialog
mov esi, eax
jmp 0x428489
xor esi, esi
cmp esi, edi
mov byte [ebp - 4], 4
jne 0x4284a2
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040212c
jmp 0x428583
mov eax, dword [ebx + 0xa8]
mov ecx, esi
mov dword [esi + 0x90], eax
mov eax, dword [esi]
call dword [eax + 0xc0]
push 1
pop edi
cmp eax, edi
je 0x4284da
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
push dword [ebp - 0x18]
call sub.MFC42u.DLL_operatordelete
xor edi, edi
pop ecx
mov dword [ebp - 0x18], edi
jmp 0x428577
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CFileDialog::GetPathName
mov eax, dword [esi]
push edi
mov ecx, esi
mov byte [ebp - 4], 7
call dword [eax + 4]
push 0x453f4c
push dword [ebp - 0x40]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
push esi
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [ebp - 0x18]
call sub.MFC42u.DLL_operatordelete
lea eax, [ebp - 0x64]
and dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0042abe7
add esp, 0x2c
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0042a289
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 7
call fcn.0040212c
mov eax, dword [ebx + 0xa8]
push 0x10040
push eax
mov ecx, ebx
push dword [ebp - 0x2c]
call fcn.0041a643
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.0043a33a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040212c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040212c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040212c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040212c
mov eax, edi
jmp 0x428626
mov eax, dword [ebx + 0xa8]
mov esi, dword [ebp - 0x38]
cmp eax, edi
jne 0x4285cc
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0x10]
cmp ebx, edi
jne 0x4285d4
xor ebx, ebx
jmp 0x4285d7
mov ebx, dword [ebx + 0x20]
push 0x10010
push eax
push esi
push ebx
call fcn.0040ec0e
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040212c
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0040212c
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040212c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0040212c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040212c
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret