Function at 0x43e5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x4c2010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a8], ecx
push 4
lea ecx, [ebp - 0x23c]
call fcn.00401320
push 0x4a1510
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov dword [ebp - 4], 0
push str.File
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ITranslatorMgr____thiscall_SOUI::SApplication::GetTranslator_void_]
mov dword [ebp - 0x2c8], eax
lea eax, [ebp - 0x2d0]
push eax
lea ecx, [ebp - 0x2cc]
push ecx
lea edx, [ebp - 0x2e0]
push edx
mov eax, dword [ebp - 0x2c8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c8]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x2f0]
mov dword [ebp - 0x314], ecx
mov byte [ebp - 4], 2
push 0
mov edx, dword [ebp - 0x314]
push edx
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.utilities.dll_public:_static_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::SStrCpCvt::CvtW2W_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const___unsigned_int_]
add esp, 0xc
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2d8]
call dword [sym.imp.utilities.dll_public:_wchar_t_const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x23c]
call fcn.00401c80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2dc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2e0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2cc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 4
lea ecx, [ebp - 0x220]
call fcn.00401320
lea ecx, [ebp - 0x220]
call fcn.00401d20
mov byte [ebp - 4], 9
push 4
lea ecx, [ebp - 0x21c]
call fcn.00401320
push 0x4a1520
lea ecx, [ebp - 0x21c]
call fcn.00401c80
mov byte [ebp - 4], 0xa
push 4
lea ecx, [ebp - 0x224]
call fcn.00401320
lea ecx, [ebp - 0x224]
call fcn.00401d20
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x410
call fcn.00401910
cmp dword [eax + 0x3c], 2
jne 0x43e786
push 0x4a1528
lea ecx, [ebp - 0x21c]
call fcn.00401c40
jmp 0x43e7ad
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x410
call fcn.00401910
cmp dword [eax + 0x3c], 0xd
jne 0x43e7ad
push 0x4a1530
lea ecx, [ebp - 0x21c]
call fcn.00401c40
lea edx, [ebp - 0x21c]
push edx
mov ecx, 0x4c6d38
call fcn.00428840
mov dword [ebp - 0x2ac], eax
push 4
lea ecx, [ebp - 0x22c]
call fcn.00401320
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x2ac]
call fcn.00427f80
push 4
lea ecx, [ebp - 0x240]
call fcn.00401320
lea ecx, [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x2ac]
call fcn.00427f20
jmp 0x43e80f
lea ecx, [ebp - 0x22c]
call fcn.00403850
lea edx, [ebp - 0x240]
push edx
lea ecx, [ebp - 0x22c]
call fcn.00401660
movzx eax, al
test eax, eax
je 0x43e880
push 4
lea ecx, [ebp - 0x230]
call fcn.00401320
lea ecx, [ebp - 0x22c]
call fcn.00402bf0
push eax
lea ecx, [ebp - 0x230]
call fcn.00401d00
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00429140
push 0x3b
lea ecx, [ebp - 0x220]
call fcn.00429100
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x230]
call fcn.00401c60
jmp 0x43e804
push 1
lea ecx, [ebp - 0x220]
call fcn.004022c0
sub eax, 1
push eax
lea ecx, [ebp - 0x220]
call fcn.00429010
lea edx, [ebp - 0x23c]
push edx
lea ecx, [ebp - 0x21c]
call fcn.00429140
push 0x28
lea ecx, [ebp - 0x21c]
call fcn.00429100
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429140
push 0x29
lea ecx, [ebp - 0x21c]
call fcn.00429100
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x224]
call fcn.00429160
push 0
lea ecx, [ebp - 0x224]
call fcn.00429100
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x224]
call fcn.00429140
push 0
lea ecx, [ebp - 0x224]
call fcn.00429100
push 4
lea ecx, [ebp - 0x238]
call fcn.00401320
push 0x4a1538
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 0xd
push str.SaveFB
lea ecx, [ebp - 0x2c4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 0xe
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ITranslatorMgr____thiscall_SOUI::SApplication::GetTranslator_void_]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
lea edx, [ebp - 0x2f8]
push edx
mov eax, dword [ebp - 0x2b0]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2b0]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], ecx
mov byte [ebp - 4], 0xf
push 0
mov edx, dword [ebp - 0x2e8]
push edx
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.utilities.dll_public:_static_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::SStrCpCvt::CvtW2W_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const___unsigned_int_]
add esp, 0xc
mov dword [ebp - 0x2ec], eax
mov ecx, dword [ebp - 0x2ec]
mov dword [ebp - 0x304], ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x304]
call dword [sym.imp.utilities.dll_public:_wchar_t_const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__void_const]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401c80
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2f4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2f8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.004720a0
add esp, 0xc
push 4
lea ecx, [ebp - 0x228]
call fcn.00401320
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x410
call fcn.00401910
mov ecx, eax
call fcn.00411170
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401c80
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x2a8]
add ecx, 0x410
call fcn.00401910
mov ecx, eax
call fcn.00411170
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x4a154c
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00436f30
add esp, 0x10
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x4a1554
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 0x17
push 0x4a1558
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
mov byte [ebp - 4], 0x18
call dword [sym.imp.soui.dll_public:_static_class_SOUI::SApplication____cdecl_SOUI::SSingleton_class_SOUI::SApplication_::getSingleton_void_]
mov ecx, eax
call dword [sym.imp.soui.dll_public:_struct_SOUI::ITranslatorMgr____thiscall_SOUI::SApplication::GetTranslator_void_]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x2bc]
push ecx
lea edx, [ebp - 0x310]
push edx
mov eax, dword [ebp - 0x2b8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2b8]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
mov dword [ebp - 0x300], ecx
mov byte [ebp - 4], 0x19
push 0
mov edx, dword [ebp - 0x300]
push edx
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.utilities.dll_public:_static_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::SStrCpCvt::CvtW2W_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const___unsigned_int_]
add esp, 0xc
mov dword [ebp - 0x318], eax
mov ecx, dword [ebp - 0x318]
mov dword [ebp - 0x308], ecx
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x308]
call dword [sym.imp.utilities.dll_public:_wchar_t_const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__void_const]
push eax
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.0047632c
add esp, 0xc
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x30c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x310]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x228]
call fcn.00401d70
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0047632c
add esp, 0xc
mov dword [ebp - 0x2a4], 0
push 0x54
push 0
lea ecx, [ebp - 0x2a0]
push ecx
call fcn.004720a0
add esp, 0xc
mov dword [ebp - 0x2a4], 0x58
mov edx, dword [ebp - 0x2a8]
mov eax, dword [edx + 0x25c]
mov dword [ebp - 0x2a0], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], 0x104
lea ecx, [ebp - 0x224]
call fcn.00401d70
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x270], 0x2000806
lea ecx, [ebp - 0x238]
call fcn.00401d70
mov dword [ebp - 0x274], eax
lea edx, [ebp - 0x2a4]
push edx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x43edab
push 4
lea ecx, [ebp - 0x234]
call fcn.00401320
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401c80
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x228]
call fcn.00401d70
push eax
lea ecx, [ebp - 0x234]
call fcn.004290d0
test eax, eax
je 0x43ecea
lea ecx, [ebp - 0x228]
call fcn.00401d70
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0047632c
add esp, 0xc
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x2a8]
mov edx, dword [ecx + 0x40c]
push edx
call dword [sym.imp.FreeImage.dll__FreeImage_AcquireMemory_12]
mov dword [ebp - 0x248], 0
push 0x4a1560
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
push ecx
call fcn.004769fb
add esp, 0xc
cmp dword [ebp - 0x248], 0
je 0x43ed9c
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x244]
push eax
push 1
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00476c7a
add esp, 0x10
mov edx, dword [ebp - 0x248]
push edx
call fcn.00476d48
add esp, 4
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax + 0x3f8]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsChecked_void_]
test eax, eax
je 0x43ed9c
lea ecx, [ebp - 0x218]
call fcn.00455ba0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x234]
call fcn.00401c60
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x228]
call fcn.00401c60
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x238]
call fcn.00401c60
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x224]
call fcn.00401c60
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x21c]
call fcn.00401c60
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x220]
call fcn.00401c60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.00401c60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00458fdd
mov esp, ebp
pop ebp
ret