Function at 0x406820
Capabilities:
Enumerate gui resources
Hide graphical window
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x7c8
mov eax, dword [0x42e040]
xor eax, esp
mov dword [esp + 0x7c4], eax
mov edx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov ecx, edx
push esi
push edi
mov dword [esp + 0x2c], eax
movaps xmmword [esp + 0x490], xmm0
lea esi, [ecx + 2]
mov dword [esp + 0x4a0], 0
mov dword [esp + 0x4a4], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406870
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x498]
call fcn.00402730
cmp dword [esp + 0x4a0], 0
jne 0x40689e
xor esi, esi
jmp 0x406c7f
push 1
xorps xmm0, xmm0
mov dword [esp + 0x434], 0
push 0x427788
lea ecx, [esp + 0x428]
movaps xmmword [esp + 0x428], xmm0
mov dword [esp + 0x43c], 0
call fcn.00402730
lea eax, [esp + 0x420]
push eax
lea edx, [esp + 0x494]
lea ecx, [esp + 0x3c]
call fcn.00402220
mov ecx, dword [esp + 0x438]
add esp, 4
cmp ecx, 7
jbe 0x40692f
mov edx, dword [esp + 0x420]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406925
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e8
push ecx
push edx
call fcn.0040a1c1
add esp, 8
mov ecx, dword [esp + 0x3c]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x38]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jae 0x406956
xor esi, esi
jmp 0x406c76
push esi
lea ecx, [esp + 0x4bc]
call fcn.00402620
mov esi, dword [esp + 0x38]
add esi, 0x18
call fcn.0040d9ba
cmp dword [esi + 0x14], 7
mov edi, eax
jbe 0x406979
mov esi, dword [esi]
push 0xa
lea eax, [esp + 0x28]
mov dword [edi], 0
push eax
push esi
call fcn.0040e82b
add esp, 0xc
mov dword [esp + 0x30], eax
cmp esi, dword [esp + 0x24]
je 0x4074cf
cmp dword [edi], 0x22
je 0x4074d9
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x460]
add eax, 0x30
push eax
call fcn.00402620
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x478]
add eax, 0x48
push eax
call fcn.00402620
cmp dword [esp + 0x4c8], 0
je 0x406b6e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x406b6e
cmp dword [esp + 0x470], 0
je 0x406b6e
cmp dword [esp + 0x488], 0
je 0x406b6e
mov ecx, eax
call fcn.00402c80
test eax, eax
jne 0x406b6e
cmp dword [esp + 0x48c], 7
lea eax, [esp + 0x478]
cmova eax, dword [esp + 0x478]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x430354], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ecx, [esp + 0x420]
lea eax, [esp + 0x460]
push eax
call fcn.00402620
lea eax, [esp + 0x420]
mov dword [esp + 0x4c], 0
push eax
lea ecx, [esp + 0x54]
call fcn.00402620
lea eax, [esp + 0x4c]
push eax
push 0x4067e0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x4c]
cmp ecx, 7
jbe 0x406abf
mov edx, dword [esp + 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406ab5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e3
push ecx
push edx
call fcn.0040a1c1
add esp, 8
mov ecx, dword [esp + 0x434]
xor eax, eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
cmp ecx, 7
jbe 0x406b18
mov edx, dword [esp + 0x420]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406b0e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e3
push ecx
push edx
call fcn.0040a1c1
add esp, 8
test esi, esi
je 0x406cc4
lea eax, [esp + 0x440]
mov dword [esp + 0x440], 0x100
push eax
push 0
push 0x4a
push esi
mov dword [esp + 0x454], 0
mov dword [esp + 0x458], 0x425df7
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x430354]
test eax, eax
je 0x406b6e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x430354], 0
xor esi, esi
mov ecx, dword [esp + 0x48c]
cmp ecx, 7
jbe 0x406bb2
mov edx, dword [esp + 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406ba8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e8
push ecx
push edx
call fcn.0040a1c1
add esp, 8
mov ecx, dword [esp + 0x474]
xor eax, eax
mov dword [esp + 0x488], 0
mov dword [esp + 0x48c], 7
mov word [esp + 0x478], ax
cmp ecx, 7
jbe 0x406c14
mov edx, dword [esp + 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406c0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e8
push ecx
push edx
call fcn.0040a1c1
add esp, 8
mov ecx, dword [esp + 0x4cc]
xor eax, eax
mov dword [esp + 0x470], 0
mov dword [esp + 0x474], 7
mov word [esp + 0x460], ax
cmp ecx, 7
jbe 0x406c76
mov edx, dword [esp + 0x4b8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406c6c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e8
push ecx
push edx
call fcn.0040a1c1
add esp, 8
lea ecx, [esp + 0x38]
call fcn.00402480
mov ecx, dword [esp + 0x4a4]
cmp ecx, 7
jbe 0x4074b7
mov edx, dword [esp + 0x490]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4074ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074e8
jmp 0x4074ad
mov eax, dword [0x430354]
test eax, eax
je 0x406b6e
cmp edi, 0xb7
je 0x406b59
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [esp + 0x5c4]
push 0
push eax
call fcn.0040bf20
add esp, 0xc
lea eax, [esp + 0x5c0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4074a2
lea eax, [esp + 0x5c0]
push 0x5c
push eax
call fcn.0040b7d9
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x5c0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0xec
lea eax, [esp + 0x4d4]
push 0
push eax
call fcn.0040bf20
add esp, 0xc
mov dword [esp + 0x5ac], 0x13a55ff
lea ecx, [esp + 0x4d0]
call fcn.00406460
test al, al
je 0x4074a2
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
sub esp, 8
call fcn.00401d40
push 0x1088
call fcn.0040a191
mov edi, eax
xor ecx, ecx
xor eax, eax
mov dword [edi + 0xc60], ecx
mov dword [edi + 0xc64], ecx
add esp, 4
mov word [edi + 0xc68], cx
mov word [edi + 8], ax
mov dword [edi + 0x210], eax
mov dword [edi + 0x214], eax
mov dword [edi + 0x420], eax
mov dword [edi + 0x424], eax
mov word [edi + 0x428], ax
mov dword [edi + 0x630], eax
mov dword [edi + 0x634], eax
mov word [edi + 0x638], ax
mov dword [edi + 0x840], eax
mov dword [edi + 0x844], eax
mov word [edi + 0x848], ax
mov dword [edi + 0xa50], eax
mov dword [edi + 0xa54], eax
mov word [edi + 0xa58], ax
lea eax, [edi + 0xc60]
mov dword [esp + 0x28], eax
xor eax, eax
mov word [edi + 0xe78], ax
lea eax, [edi + 0x1080]
mov word [edi + 0x218], cx
mov dword [edi + 0xe70], ecx
mov dword [edi + 0xe74], ecx
mov ecx, eax
mov dword [esp + 0x34], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esp + 0x48], eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
lea esi, [edi + 0x1084]
mov ecx, esi
mov dword [esp + 0x24], esi
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
push 0x4267c0
lea ecx, [edi + 0x1080]
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__]
xorps xmm0, xmm0
mov dword [esp + 0x450], 0
lea ecx, [esp + 0x5c0]
movaps xmmword [esp + 0x440], xmm0
mov dword [esp + 0x454], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406eb0
sub ecx, edx
lea eax, [esp + 0x5c0]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x448]
call fcn.00402730
mov ecx, dword [esp + 0x450]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 4
jb 0x4074ed
cmp dword [esp + 0x454], 7
lea eax, [esp + 0x440]
push 4
cmova eax, dword [esp + 0x444]
push str._bin
push ecx
push eax
push ecx
push dword [esp + 0x48]
lea ecx, [esp + 0x438]
call fcn.004030b0
cmp dword [esp + 0x434], 7
lea eax, [esp + 0x420]
lea ecx, [esp + 0x18]
cmova eax, dword [esp + 0x420]
push eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x406f92
push 1
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Right_int_]
push 0x4267e0
mov ecx, eax
call dword [sym.imp.utilities.dll_public:_int___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::Compare_wchar_t_const__const]
lea ecx, [esp + 0x20]
mov esi, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
test esi, esi
lea esi, [edi + 0x1084]
je 0x406f92
push 0x4267e0
mov ecx, esi
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__]
lea ecx, [esp + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [esp + 0x434]
cmp ecx, 7
jbe 0x406fde
mov edx, dword [esp + 0x420]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406fd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074f2
push ecx
push edx
call fcn.0040a1c1
add esp, 8
mov ecx, dword [esp + 0x454]
xor eax, eax
mov dword [esp + 0x430], 0
mov dword [esp + 0x434], 7
mov word [esp + 0x420], ax
cmp ecx, 7
jbe 0x407040
mov edx, dword [esp + 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407036
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4074f2
push ecx
push edx
call fcn.0040a1c1
add esp, 8
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov esi, dword [esi]
push str.render_skia.dll
push str.render_skia.dll
call dword [sym.imp.utilities.dll_public:_static_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::SafeStrlen_wchar_t_const__]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push dword [edi + 0x1084]
push dword [esi - 8]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
push ecx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
lea ecx, [edi + 0x210]
call fcn.00404950
lea ecx, [esp + 0x14]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov esi, dword [edi + 0x1080]
push 0x4267e4
push 0x4267e4
call dword [sym.imp.utilities.dll_public:_static_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::SafeStrlen_wchar_t_const__]
add esp, 4
lea ecx, [esp + 0x14]
push eax
push dword [edi + 0x1080]
push dword [esi - 8]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
lea ecx, [esp + 0x14]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x1084]
push eax
push dword [eax - 8]
push ecx
push dword [ecx - 8]
lea ecx, [esp + 0x24]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
push ecx
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
push dword [esp + 0x1c]
call fcn.00404950
lea ecx, [esp + 0x14]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x10]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.0040a191
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x48]
add esp, 4
mov dword [esp + 0x44], 0
mov edi, eax
mov dword [esp + 0x20], edi
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SObjectDefaultRegister::constructor_void_]
push eax
push 0x42778c
push dword [esp + 0x38]
mov ecx, edi
push esi
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::constructor_struct_SOUI::IRenderFactory___struct_HINSTANCE_____wchar_t_const___struct_SOUI::ISystemObjectRegister_const___int_]
mov dword [edi], vtable.SOUI::SApplication.1.0
lea eax, [esp + 0x10]
add edi, 4
mov dword [esp + 0x10], vtable.SOUI::TplSObjectFactory_class_SOUI::SMiniBlink_.0
push 0
push eax
mov dword [edi], vtable.SOUI::SApplication.0
mov esi, dword [sym.imp.soui.dll_public:_bool___thiscall_SOUI::SObjectFactoryMgr::RegisterFactory_class_SOUI::SObjectFactory___bool_]
mov ecx, edi
call esi
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], vtable.SOUI::TplSObjectFactory_class_SOUI::SAnimateImgWnd2_.0
push eax
mov ecx, edi
call esi
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], vtable.SOUI::TplSObjectFactory_class_SOUI::SRgnWnd_.0
push eax
mov ecx, edi
call esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov edi, dword [esp + 0x24]
push str.resprovider_7zip.dll
push str.resprovider_7zip.dll
mov esi, dword [edi]
call dword [sym.imp.utilities.dll_public:_static_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::SafeStrlen_wchar_t_const__]
add esp, 4
lea ecx, [esp + 0x14]
push eax
push dword [edi]
push dword [esi - 8]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
push ecx
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.00404950
lea ecx, [esp + 0x10]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0x73
mov dword [esp + 0x5c], 0x4277b0
mov dword [esp + 0x60], str.4_pgINUs6V7_
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x20]
push str.uidef:xml_init
push dword [esp + 0x18]
add ecx, 0x10
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x407280
mov eax, dword [ecx]
call dword [eax + 4]
push str.LAYOUT:XML_MAINWND
lea ecx, [esp + 0x6c]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostWnd::constructor_wchar_t_const__]
lea eax, [esp + 0x4b8]
mov dword [esp + 0x68], vtable.SOUI::CMainDlg.1.0
push eax
lea ecx, [esp + 0x404]
mov dword [esp + 0x70], vtable.SOUI::CMainDlg.4.0
mov dword [esp + 0x74], vtable.SOUI::CMainDlg.0
mov dword [esp + 0x78], vtable.SOUI::CMainDlg.3.0
mov dword [esp + method.SOUI::CMainDlg.2.virtual_0], vtable.SOUI::CMainDlg.2.0
mov dword [esp + 0x3f4], 0x427c80
mov dword [esp + 0x400], 0
call fcn.00402620
mov eax, dword [esp + 0x30]
push 0
push 0
push 0
push 0
mov dword [esp + 0x428], eax
mov dword [esp + 0x408], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SHostWnd::Create_struct_HWND_____int__int__int__int_]
push 0
push 0
push 0x110
push dword [esp + 0x2bc]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x2b0]
lea ecx, [esp + 0x2a8]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::CenterWindow_struct_HWND____]
cmp dword [esp + 0x474], 7
lea ecx, [esp + 0x460]
mov eax, dword [esp + 0x2b0]
cmova ecx, dword [esp + 0x460]
push eax
push ecx
push eax
call dword [sym.imp.USER32.dll_SetPropW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esp + 0x2b4]
call esi
mov edi, dword [esp + 0x2b0]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 1
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push edi
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esp + 0x2b0]
mov esi, dword [esp + 0x24]
mov ecx, esi
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::Run_struct_HWND____]
lea ecx, [esp + 0x68]
mov dword [esp + 0x28], eax
call fcn.00408230
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4073f6
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x407403
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [esp + 0x48]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov esi, dword [esp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xe70]
test eax, eax
je 0x40742e
push eax
call edi
mov eax, dword [esi + 0xc60]
test eax, eax
je 0x40743b
push eax
call edi
mov eax, dword [esi + 0xa50]
test eax, eax
je 0x407448
push eax
call edi
mov eax, dword [esi + 0x840]
test eax, eax
je 0x407455
push eax
call edi
mov eax, dword [esi + 0x630]
test eax, eax
je 0x407462
push eax
call edi
mov eax, dword [esi + 0x420]
test eax, eax
je 0x40746f
push eax
call edi
mov eax, dword [esi + 0x210]
test eax, eax
je 0x40747c
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x407485
push eax
call edi
push 0x1088
push esi
call fcn.0040a1c1
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov esi, dword [esp + 0x28]
jmp 0x406b70
call dword [sym.imp.ole32.dll_OleUninitialize]
jmp 0x406b6e
push ecx
push edx
call fcn.0040a1c1
add esp, 8
mov ecx, dword [esp + 0x7cc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040a183
mov esp, ebp
pop ebp
ret 0x10
push str.invalid_stoi_argument
call fcn.00409d49
push str.stoi_argument_out_of_range
call fcn.00409d89
call fcn.0040d8ef
call fcn.0040d8ef
call fcn.004011c0
call fcn.0040d8ef
int3