Function at 0x427e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4723ed
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x4a5010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2a4], ebx
push 0x48c2c0
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x238], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push str.File
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], 0
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_]
lea ecx, [ebp - 0x2b0]
push ecx
lea ecx, [ebp - 0x2ac]
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x2bc]
push ecx
mov ecx, eax
call dword [edx + 0x20]
push 0
push eax
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 2
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 byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
push dword [eax]
call fcn.00401980
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x2bc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x2ac]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x2b0]
mov byte [ebp - 4], 8
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x21c]
push 0x48ccd8
mov dword [ebp - 0x21c], 0
call fcn.00401980
mov byte [ebp - 4], 0xa
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebx + 0x410]
cmp dword [eax + 0x3c], 2
jne 0x427fb8
push 3
push 0x48ccd8
jmp 0x427fc5
cmp dword [eax + 0x3c], 0xd
jne 0x427fd0
push 3
push 0x48cce0
lea ecx, [ebp - 0x21c]
call fcn.00402560
lea eax, [ebp - 0x21c]
mov ecx, 0x4a9d14
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0041e220
mov eax, dword [ebp - 0x240]
mov ebx, 1
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x2a8], eax
mov esi, dword [eax]
cmp esi, eax
je 0x428113
nop word [eax + eax]
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
call fcn.00401e20
lea ebx, [eax + 0x10]
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x224]
push dword [ebx - 0xc]
push ebx
call fcn.0041c7b0
mov edi, dword [ebp - 0x224]
mov eax, dword [edi - 0xc]
mov dword [ebp - 0x22c], eax
lea edx, [eax + 1]
mov dword [ebp - 0x244], edx
test edx, edx
js 0x428149
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x428080
push edx
lea ecx, [ebp - 0x224]
call fcn.004023a0
mov edi, dword [ebp - 0x224]
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x22c]
mov ecx, 0x3b
mov word [edi + eax*2], cx
cmp edx, dword [edi - 8]
jg 0x428149
xor eax, eax
mov dword [edi - 0xc], edx
mov word [edi + edx*2], ax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0xb
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4280bd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [esi + 0xd], 0
jne 0x428102
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4280e2
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x428102
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4280d6
jmp 0x428102
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x428100
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x428100
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4280f0
mov esi, eax
cmp esi, dword [ebp - 0x2a8]
jne 0x428010
mov ebx, 1
mov eax, dword [edi - 0xc]
push ecx
dec eax
lea ecx, [ebp - 0x224]
push eax
call fcn.0041b330
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x21c]
push dword [eax - 0xc]
push eax
call fcn.0041c7b0
mov eax, dword [ebp - 0x21c]
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
jns 0x428153
push 0x80070057
call fcn.00403340
mov ecx, dword [eax - 8]
mov edx, ebx
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x428173
push esi
lea ecx, [ebp - 0x21c]
call fcn.004023a0
mov eax, dword [ebp - 0x21c]
mov ecx, 0x28
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x21c]
cmp esi, dword [eax - 8]
jg 0x428149
mov ebx, dword [ebp - 0x224]
xor ecx, ecx
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x21c]
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x21c]
push dword [ebx - 0xc]
push ebx
call fcn.0041c7b0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x244], ecx
lea esi, [ecx + 1]
test esi, esi
jns 0x4281cb
push 0x80070057
call fcn.00403340
mov ecx, dword [eax - 8]
mov edi, 1
mov edx, edi
sub ecx, esi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x4281f0
push esi
lea ecx, [ebp - 0x21c]
call fcn.004023a0
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x244]
mov edx, 0x29
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x21c]
cmp esi, dword [eax - 8]
jg 0x428149
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x21c]
mov word [eax + esi*2], cx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.0041bc30
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x244], ecx
lea esi, [ecx + 1]
test esi, esi
jns 0x42824f
push 0x80070057
call fcn.00403340
mov ecx, dword [eax - 8]
mov edx, edi
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x42826f
push esi
lea ecx, [ebp - 0x220]
call fcn.004023a0
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x244]
xor edx, edx
mov word [eax + ecx*2], dx
cmp esi, dword [eax - 8]
jg 0x428149
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x220]
push dword [ebx - 0xc]
push ebx
call fcn.0041c7b0
mov esi, dword [ebp - 0x220]
mov eax, dword [esi - 0xc]
mov dword [ebp - 0x244], eax
lea edi, [eax + 1]
test edi, edi
jns 0x4282bc
push 0x80070057
call fcn.00403340
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x4282df
push edi
lea ecx, [ebp - 0x220]
call fcn.004023a0
mov esi, dword [ebp - 0x220]
mov eax, dword [ebp - 0x244]
xor ecx, ecx
mov word [esi + eax*2], cx
cmp edi, dword [esi - 8]
jg 0x428149
xor eax, eax
mov dword [esi - 0xc], edi
push 0x48c2c0
lea ecx, [ebp - 0x2a8]
mov word [esi + edi*2], ax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push str.SaveFB
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 0xd
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_]
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2b4]
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x2c4]
push ecx
mov ecx, eax
call dword [edx + 0x20]
push 0
push eax
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 0xf
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 byte [ebp - 4], 0x10
mov edi, dword [eax]
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0x11
test edi, edi
je 0x4283c6
test edi, 0xffff0000
jne 0x4283b0
movzx edi, di
mov ecx, edi
call fcn.004031b0
test eax, eax
je 0x4283d5
push edi
push eax
lea ecx, [ebp - 0x234]
call fcn.00402300
jmp 0x4283d5
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4283b5
sub ecx, edx
sar ecx, 1
jmp 0x4283c8
xor ecx, ecx
push ecx
push edi
lea ecx, [ebp - 0x234]
call fcn.00402560
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 - 0x2c4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x16
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00458500
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
mov eax, dword [eax + 0x410]
cmp dword [eax + 0x14], 8
jb 0x428433
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x244], eax
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x230], edi
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x244]
test edx, edx
je 0x4284b1
test edx, 0xffff0000
jne 0x428493
movzx eax, dx
mov ecx, eax
mov dword [ebp - 0x244], eax
call fcn.004031b0
test eax, eax
je 0x4284c6
push dword [ebp - 0x244]
lea ecx, [ebp - 0x230]
push eax
call fcn.00402300
jmp 0x4284c0
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4284a0
sub ecx, edi
sar ecx, 1
jmp 0x4284b3
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00402560
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x2a4]
mov byte [ebp - 4], 0x18
mov eax, dword [eax + 0x410]
cmp dword [eax + 0x14], 8
jb 0x4284de
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x48cd08
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004217e0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x48c2c0
lea ecx, [ebp - 0x228]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
push 0x48de6c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x19
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], 0x1a
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_]
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x248]
mov edx, dword [eax]
push ecx
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, eax
call dword [edx + 0x20]
push 0
push eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x1b
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
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0045c646
add esp, 0xc
lea ecx, [ebp - 0x244]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x22c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x248]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0x18
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0045c646
add esp, 0xc
lea eax, [ebp - 0x29c]
push 0x54
push 0
push eax
call fcn.00458500
mov eax, dword [ebp - 0x2a4]
add esp, 0xc
mov dword [ebp - 0x2a0], 0x58
mov dword [ebp - 0x280], 0x104
mov dword [ebp - 0x294], esi
mov eax, dword [eax + 0x25c]
mov dword [ebp - 0x29c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x284], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x26c], 0x2000806
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4287cc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x23c], eax
call fcn.004035d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x228], ebx
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x23c]
test edx, edx
je 0x4286c8
test edx, 0xffff0000
jne 0x4286b2
movzx eax, dx
mov ecx, eax
mov dword [ebp - 0x23c], eax
call fcn.004031b0
test eax, eax
je 0x4286dd
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x228]
push eax
call fcn.00402300
jmp 0x4286d7
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4286b7
sub ecx, ebx
sar ecx, 1
jmp 0x4286ca
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x228]
call fcn.00402560
mov ebx, dword [ebp - 0x228]
push edi
push ebx
mov byte [ebp - 4], 0x1d
call fcn.00459c42
add esp, 8
test eax, eax
je 0x428704
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0045c646
add esp, 0xc
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x244], 0
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x22c], 0
push eax
mov eax, dword [ebp - 0x2a4]
push dword [eax + 0x40c]
call dword [sym.imp.FreeImage.dll__FreeImage_AcquireMemory_12]
push 0x48de74
lea eax, [ebp - 0x218]
mov dword [ebp - 0x248], 0
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0045cd15
mov eax, dword [ebp - 0x248]
add esp, 0xc
test eax, eax
je 0x4287aa
push eax
push dword [ebp - 0x22c]
push 1
push dword [ebp - 0x244]
call fcn.0045cf94
push dword [ebp - 0x248]
call fcn.0045d062
mov eax, dword [ebp - 0x2a4]
add esp, 0x14
mov ecx, dword [eax + 0x3f8]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SWindow::IsChecked_void_]
test eax, eax
je 0x4287aa
lea ecx, [ebp - 0x218]
call fcn.0043a2f0
mov byte [ebp - 4], 0x18
add ebx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4287c6
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x224]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0x16
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4287ea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, edi
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42880b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x428826
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, edi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x428847
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
add ebx, 0xfffffff0
mov eax, edi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x428862
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x428884
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f53f
mov esp, ebp
pop ebp
ret