Function at 0x402000
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x7b8
mov eax, dword [0x737100]
xor eax, esp
mov dword [esp + 0x7b4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push str.E5960543_E6A4_46AF_B336_E0CD69D6E131
push 0
push 0x1f0003
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x40205f
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x7b4]
xor ecx, esp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 0x10
mov ecx, edi
mov dword [esp + 0x540], 0
xorps xmm0, xmm0
mov dword [esp + 0x544], 0
movaps xmmword [esp + 0x530], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402085
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esp + 0x538]
call fcn.00403d70
cmp dword [esp + 0x540], 0
jne 0x4020c4
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffe
jmp 0x4022f8
push 1
xorps xmm0, xmm0
mov dword [esp + 0x504], 0
push 0x71c114
lea ecx, [esp + 0x4f8]
movaps xmmword [esp + 0x4f8], xmm0
mov dword [esp + 0x50c], 0
call fcn.00403d70
lea eax, [esp + 0x4f0]
push eax
lea eax, [esp + 0x534]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.0040eea0
mov ecx, dword [esp + 0x510]
add esp, 0xc
cmp ecx, 7
jbe 0x402157
mov edx, dword [esp + 0x4f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40214d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c82
push ecx
push edx
call fcn.0048162a
add esp, 8
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
cmp edi, eax
je 0x4022dc
cmp dword [edi + 0x14], 7
xorps xmm0, xmm0
mov edx, 0xa
movaps xmmword [esp + 0x4f0], xmm0
mov dword [esp + 0x500], 0
mov ecx, edi
mov dword [esp + 0x504], 0
mov dword [esp + 0x14], edi
jbe 0x4021ab
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
mov esi, dword [edi + 0x10]
cmp esi, 0x7ffffffe
ja 0x402caa
cmp esi, 7
ja 0x4021df
mov eax, 7
mov dword [esp + 0x500], esi
mov dword [esp + 0x504], eax
movups xmm0, xmmword [ecx]
movups xmmword [esp + 0x4f0], xmm0
jmp 0x40224a
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x4021f2
mov eax, SysReAllocString
jmp 0x4021f8
cmp eax, 0xa
cmovb eax, edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4f4]
push eax
call fcn.00404390
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x50c], ecx
lea ecx, [esi*2 + 2]
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x500], eax
push eax
mov dword [esp + 0x514], esi
call fcn.004de1b0
mov esi, dword [esp + 0x514]
add esp, 0x14
mov eax, dword [esp + 0x504]
cmp eax, 7
lea ecx, [esp + 0x4f0]
mov eax, dword [esp + 0x4f0]
mov edx, esi
push 6
push 0x71c118
cmova ecx, eax
mov dword [esp + 0x2c], eax
push 0
seta byte [esp + 0x2f]
call fcn.00403c90
add esp, 0xc
test eax, eax
je 0x40233d
cmp byte [esp + 0x23], 0
je 0x4022cb
mov eax, dword [esp + 0x504]
mov edx, dword [esp + 0x24]
mov esi, edx
lea ecx, [eax*2 + 2]
cmp ecx, 0x1000
jb 0x4022c1
mov eax, dword [esi - 4]
add ecx, 0x23
sub esi, eax
mov dword [esp + 0x24], eax
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x402c82
mov edx, dword [esp + 0x24]
push ecx
push edx
call fcn.0048162a
add esp, 8
add edi, 0x18
cmp edi, dword [esp + 0x2c]
jne 0x402173
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffd
lea ecx, [esp + 0x38]
call fcn.00402ec0
mov ecx, dword [esp + 0x544]
cmp ecx, 7
jbe 0x402c6a
mov edx, dword [esp + 0x530]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402c60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402c87
jmp 0x402c60
mov dword [esp + 0x520], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x510], xmm0
mov dword [esp + 0x524], 0
cmp esi, 6
jb 0x402c8c
or ecx, 0xffffffff
lea eax, [esi - 6]
cmp eax, 0xffffffff
cmovb ecx, eax
cmp byte [esp + 0x23], 0
lea eax, [esp + 0x4f0]
cmovne eax, dword [esp + 0x24]
push ecx
add eax, 0xc
lea ecx, [esp + 0x514]
push eax
call fcn.00403d70
cmp dword [esp + 0x520], 0
je 0x4023ea
call fcn.004ed90f
cmp dword [esp + 0x524], 7
lea esi, [esp + 0x510]
mov edi, eax
lea eax, [esp + 0x2c]
cmova esi, dword [esp + 0x510]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.004ed35b
add esp, 0xc
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x2c]
je 0x402c91
cmp dword [edi], 0x22
je 0x402c9b
mov ecx, dword [esp + 0x524]
cmp ecx, 7
jbe 0x40242c
mov edx, dword [esp + 0x510]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402422
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca5
push ecx
push edx
call fcn.0048162a
add esp, 8
mov ecx, dword [esp + 0x504]
xor eax, eax
mov dword [esp + 0x520], 0
mov dword [esp + 0x524], 7
mov word [esp + 0x510], ax
cmp ecx, 7
jbe 0x40248e
mov edx, dword [esp + 0x4f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402484
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ca5
push ecx
push edx
call fcn.0048162a
add esp, 8
mov esi, dword [esp + 0x18]
test esi, esi
jle 0x4022d8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0040c0b0
add esp, 4
test eax, eax
jne 0x4024c9
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffc
jmp 0x4022ef
cmp esi, eax
je 0x4024e9
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0xfffffffb
jmp 0x4022ef
push eax
lea eax, [esp + 0x584]
push eax
call fcn.0040c170
mov edx, dword [esp + 0x598]
add esp, 8
test edx, edx
jne 0x402534
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x580]
mov dword [esp + 0x14], 0xfffffffa
call fcn.00403030
mov esi, dword [esp + 0x14]
jmp 0x4022ef
cmp dword [esp + 0x594], 7
lea ecx, [esp + 0x580]
push 9
cmova ecx, dword [esp + 0x584]
push 0x71c128
call fcn.00403c20
mov esi, dword [esp + 0x24]
add esp, 8
push esi
test eax, eax
je 0x40258d
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x580]
mov dword [esp + 0x14], 0xfffffff9
call fcn.00403030
mov esi, dword [esp + 0x14]
jmp 0x4022ef
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.004edd1c
add esp, 4
push eax
call fcn.004ead94
add esp, 4
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [esp + 0x5b4]
push 0
push eax
call fcn.004ded70
add esp, 0xc
lea eax, [esp + 0x5b0]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x5b0]
push 0x5c
push eax
call fcn.004ddcfa
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x5b0]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x1088
call fcn.004815fa
mov edi, eax
xor ecx, ecx
xor eax, eax
add esp, 4
mov word [edi + 0x218], cx
lea ecx, [edi + 0x1080]
mov dword [edi], 0
mov dword [edi + 4], 0
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
mov dword [edi + 0xc60], eax
mov dword [edi + 0xc64], eax
mov word [edi + 0xc68], ax
mov dword [edi + 0xe70], eax
mov dword [edi + 0xe74], eax
mov word [edi + 0xe78], ax
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
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
push str.imgdecoder_gdip
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__]
lea eax, [esp + 0x5b0]
push eax
lea ecx, [esp + 0x4f4]
call fcn.00403090
mov ecx, dword [esp + 0x500]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 4
jb 0x402caa
cmp dword [esp + 0x504], 7
lea eax, [esp + 0x4f0]
push 4
cmova eax, dword [esp + 0x4f4]
push str._bin
push ecx
push eax
push ecx
push dword [esp + 0x48]
lea ecx, [esp + 0x5b0]
call fcn.00404010
cmp dword [esp + 0x5ac], 7
lea eax, [esp + 0x598]
lea ecx, [esp + 0x28]
cmova eax, dword [esp + 0x598]
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 + 0x28]
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 0x4027ad
push 1
lea eax, [esp + 0x30]
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 0x71c01c
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 + 0x2c]
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 0x4027ad
push 0x71c01c
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 + 0x28]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x598]
call fcn.00403030
lea ecx, [esp + 0x4f0]
call fcn.00403030
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 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 + 0x1c]
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 + 0x20]
lea ecx, [edi + 0x210]
call fcn.00401970
lea ecx, [esp + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x14]
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 0x71c020
push 0x71c020
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 + 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 + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x1084]
push eax
push dword [eax - 8]
push ecx
push dword [ecx - 8]
lea ecx, [esp + 0x28]
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 + 0x2c]
mov ecx, edi
push eax
push dword [esp + 0x20]
call fcn.00401970
lea ecx, [esp + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x14]
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 + 0x28]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.004815fa
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x30]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SObjectDefaultRegister::constructor_void_]
push eax
push str.SOUIHOST
push dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x28]
mov ecx, 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 [esi], vtable.SOUI::SApplication.1.0
push 0
lea eax, [esp + 0x18]
mov dword [esi + 4], vtable.SOUI::SApplication.0
lea ecx, [esi + 4]
mov dword [esp + 0x18], vtable.SOUI::TplSObjectFactory_class_SOUI::SSkinVScrollbar_.0
push eax
call dword [sym.imp.soui.dll_public:_bool___thiscall_SOUI::SObjectFactoryMgr::RegisterFactory_class_SOUI::SObjectFactory___bool_]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [esp + 0x2c]
add esp, 8
mov eax, dword [ecx]
push 0
push dword [esp + 0x34]
call dword [eax + 0xc]
push str.uidef:xml_init
push dword [esp + 0x28]
lea ecx, [esi + 0x10]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
push dword [esp + 0x34]
lea ecx, [esp + 0x1c]
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]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits__const__]
push str.LAYOUT:XML_MAINWND
lea ecx, [esp + 0x4c]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostWnd::constructor_wchar_t_const__]
lea ecx, [esp + 0x3dc]
mov dword [esp + 0x48], vtable.SOUI::CMainDlg.1.0
mov dword [esp + 0x4c], vtable.SOUI::CMainDlg.4.0
mov dword [esp + 0x50], vtable.SOUI::CMainDlg.0
mov dword [esp + 0x54], vtable.SOUI::CMainDlg.3.0
mov dword [esp + method.SOUI::CMainDlg.2.virtual_0], vtable.SOUI::CMainDlg.2.0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
lea ecx, [esp + 0x3e0]
call fcn.00405270
xor eax, eax
mov dword [esp + 0x490], 0
xorps xmm0, xmm0
mov dword [esp + 0x4c4], eax
movups xmmword [esp + 0x480], xmm0
mov word [esp + 0x480], ax
lea ecx, [esp + 0x3dc]
mov byte [esp + 0x4c8], al
mov dword [esp + 0x4cc], eax
mov dword [esp + 0x4d0], eax
mov byte [esp + 0x4d4], al
mov dword [esp + 0x4e8], eax
mov dword [esp + 0x3d4], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x498], 7
movq qword [esp + 0x49c], xmm0
movups xmmword [esp + 0x4dc], xmm0
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__]
push 0
push 0x720a00
lea ecx, [esp + 0x488]
call fcn.00406120
movzx eax, byte [esp + 0x40]
lea ecx, [esp + 0x558]
mov byte [esp + 0x568], al
movzx eax, byte [esp + 0x41]
mov byte [esp + 0x569], al
lea eax, [esp + 0x48]
mov dword [esp + 0x56c], eax
lea eax, [esp + 0x558]
mov dword [esp + 0x57c], eax
lea eax, [esp + 0x4a0]
mov byte [esp + 0x4c8], 0
mov dword [esp + 0x4cc], 0
mov dword [esp + 0x4d0], 0
mov dword [esp + 0x558], 0x720d98
mov dword [esp + 0x560], 0x405bb0
mov dword [esp + 0x564], 0
push eax
call fcn.00406d50
mov ecx, dword [esp + 0x57c]
test ecx, ecx
je 0x402b04
mov edx, dword [ecx]
lea eax, [esp + 0x558]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
lea ecx, [esp + 0x30]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x5c]
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
lea ecx, [esp + 0x290]
call dword [sym.imp.soui.dll_public:_long_int___thiscall_SOUI::CSimpleWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
push dword [esp + 0x290]
lea ecx, [esp + 0x288]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::CenterWindow_struct_HWND____]
push 0
lea ecx, [esp + 0x288]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push dword [esp + 0x290]
mov ecx, esi
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::Run_struct_HWND____]
lea ecx, [esp + 0x48]
mov dword [esp + 0x14], eax
call fcn.00405570
lea ecx, [esp + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x402b9b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x402ba8
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x402bb5
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 0x1084]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [edi + 0x1080]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [edi + 0xe70]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x402be0
push eax
call esi
mov eax, dword [edi + 0xc60]
test eax, eax
je 0x402bed
push eax
call esi
mov eax, dword [edi + 0xa50]
test eax, eax
je 0x402bfa
push eax
call esi
mov eax, dword [edi + 0x840]
test eax, eax
je 0x402c07
push eax
call esi
mov eax, dword [edi + 0x630]
test eax, eax
je 0x402c14
push eax
call esi
mov eax, dword [edi + 0x420]
test eax, eax
je 0x402c21
push eax
call esi
mov eax, dword [edi + 0x210]
test eax, eax
je 0x402c2e
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x402c37
push eax
call esi
push 0x1088
push edi
call fcn.0048162a
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
lea ecx, [esp + 0x580]
call fcn.00403030
mov esi, dword [esp + 0x14]
jmp 0x4022ef
push ecx
push edx
call fcn.0048162a
add esp, 8
mov ecx, dword [esp + 0x7bc]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004815ec
mov esp, ebp
pop ebp
ret 0x10
call fcn.004ed7be
call fcn.004ed7be
call fcn.00403670
push str.invalid_stoi_argument
call fcn.0046290e
push str.stoi_argument_out_of_range
call fcn.0046294e
call fcn.004ed7be
call fcn.00401d00
int3