Function at 0x406220
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x638
mov eax, dword [0x6360c0]
xor eax, esp
mov dword [esp + 0x634], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esp + 0x24], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x208
lea eax, [esp + 0x434]
push 0
push eax
call fcn.00477510
add esp, 0xc
lea eax, [esp + 0x430]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x430]
push 0x5c
push eax
call fcn.004769e1
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x1088
call fcn.0042d9ee
mov esi, eax
xor ecx, ecx
xor eax, eax
add esp, 4
mov word [esi + 0x218], cx
mov word [esi + 0xc68], cx
lea ecx, [esi + 0x1080]
mov dword [esi], 0
mov dword [esi + 4], 0
mov word [esi + 8], ax
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x420], eax
mov dword [esi + 0x424], eax
mov word [esi + 0x428], ax
mov dword [esi + 0x630], eax
mov dword [esi + 0x634], eax
mov word [esi + 0x638], ax
mov dword [esi + 0x840], eax
mov dword [esi + 0x844], eax
mov word [esi + 0x848], ax
mov dword [esi + 0xa50], eax
mov dword [esi + 0xa54], eax
mov word [esi + 0xa58], ax
mov dword [esi + 0xc60], eax
mov dword [esi + 0xc64], eax
mov dword [esi + 0xe70], eax
mov dword [esi + 0xe74], eax
mov word [esi + 0xe78], ax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
lea edi, [esi + 0x1084]
mov ecx, edi
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
push 0x629860
lea ecx, [esi + 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 + 0x420], 0
lea ecx, [esp + 0x430]
movaps xmmword [esp + 0x410], xmm0
mov dword [esp + 0x424], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4063a3
sub ecx, edx
lea eax, [esp + 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x418]
call fcn.00401950
mov ecx, dword [esp + 0x420]
mov eax, bind
sub eax, ecx
cmp eax, 4
jb 0x4069fe
cmp dword [esp + 0x424], 7
lea eax, [esp + 0x410]
push 4
cmova eax, dword [esp + 0x414]
push str._bin
push ecx
push eax
push ecx
push dword [esp + 0x34]
lea ecx, [esp + 0x40c]
call fcn.00401b30
cmp dword [esp + 0x408], 7
lea eax, [esp + 0x3f4]
lea ecx, [esp + 0x10]
cmova eax, dword [esp + 0x3f4]
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 + 0x10]
mov ecx, edi
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 [edi]
cmp dword [eax - 8], 0
je 0x406485
push 1
lea eax, [esp + 0xc]
mov ecx, edi
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 0x62985c
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 + 8]
mov edi, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
test edi, edi
lea edi, [esi + 0x1084]
je 0x406485
push 0x62985c
mov ecx, edi
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 + 0x10]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [esp + 0x408]
cmp ecx, 7
jbe 0x4064d1
mov edx, dword [esp + 0x3f4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4064c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a03
push ecx
push edx
call fcn.0042dc6f
add esp, 8
mov ecx, dword [esp + 0x424]
xor eax, eax
mov dword [esp + 0x404], 0
mov dword [esp + 0x408], 7
mov word [esp + 0x3f4], ax
cmp ecx, 7
jbe 0x406533
mov edx, dword [esp + 0x410]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406529
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406a03
push ecx
push edx
call fcn.0042dc6f
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
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 [edi]
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 + 0x10]
push eax
push dword [esi + 0x1084]
push dword [edi - 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 + 0x18]
push eax
push dword [esp + 0x14]
lea ecx, [esi + 0x210]
call fcn.00406b90
lea ecx, [esp + 0xc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov edi, dword [esi + 0x1080]
push 0x629820
push 0x629820
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 + 0xc]
push eax
push dword [esi + 0x1080]
push dword [edi - 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 + 0xc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov eax, dword [esp + 8]
mov ecx, dword [esi + 0x1084]
push eax
push dword [eax - 8]
push ecx
push dword [ecx - 8]
lea ecx, [esp + 0x1c]
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 + 0x14]
mov ecx, esi
push eax
push dword [esp + 0x14]
call fcn.00406b90
lea ecx, [esp + 0xc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.0042d9ee
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], 0
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SObjectDefaultRegister::constructor_void_]
push eax
push str.SOUIHOST
push dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
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_]
lea ecx, [edi + 4]
mov dword [edi], vtable.SOUI::SApplication.1.0
push 0
lea eax, [esp + 0xc]
mov dword [ecx], vtable.SOUI::SApplication.0
mov dword [esp + 0xc], 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 ecx, [esp + 8]
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 edi, dword [esi + 0x1084]
push 0x6297c8
push 0x6297c8
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 + 0xc]
push eax
push dword [esi + 0x1084]
push dword [edi - 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 + 0x10]
lea ecx, [esi + 0xc60]
call fcn.00406b90
lea ecx, [esp + 8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x3f4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3f8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3f4], 1
mov dword [esp + 0x40c], 0
mov dword [esp + 0x3fc], eax
mov dword [esp + 0x400], 0x73
mov dword [esp + 0x404], 0x629770
mov dword [esp + 0x408], 0x629760
mov eax, dword [ecx]
push 0
push edx
call dword [eax + 0xc]
mov edi, dword [esp + 0xc]
push str.uidef:xml_init
push dword [esp + 0x20]
lea ecx, [edi + 0x10]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
push dword [esp + 0x20]
lea ecx, [esp + 0xc]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_wchar_t_const__]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
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 + 0x2c]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostWnd::constructor_wchar_t_const__]
xorps xmm0, xmm0
mov dword [esp + 0x28], vtable.CMainDlg.4.0
lea ecx, [esp + 0x3e8]
mov dword [esp + 0x2c], vtable.CMainDlg.3.0
mov dword [esp + 0x30], vtable.CMainDlg.2.0
mov dword [esp + 0x34], vtable.CMainDlg.1.0
mov dword [esp + method.CMainDlg.virtual_0], vtable.CMainDlg.0
mov dword [esp + 0x3bc], 0
mov dword [esp + 0x3c0], 0
movups xmmword [esp + 0x3c4], xmm0
mov dword [esp + 0x3d4], 0
movq qword [esp + 0x3dc], xmm0
mov dword [esp + 0x3e4], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
lea eax, [esp + 0x18]
mov dword [esp + 0x3ec], 0
push eax
lea ecx, [esp + 0x3ec]
mov dword [esp + 0x3b8], 0
mov byte [esp + 0x3bc], 0
mov word [esp + 0x3dc], 0
mov byte [esp + 0x3de], 0
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__]
xorps xmm0, xmm0
lea ecx, [esp + 0x18]
movups xmmword [esp + 0x3c0], xmm0
movq qword [esp + 0x3d0], xmm0
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 + 0x3c]
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 + 0x27c]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esp + 0x270]
lea ecx, [esp + 0x268]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::CenterWindow_struct_HWND____]
push 0
lea ecx, [esp + 0x268]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push dword [esp + 0x270]
mov ecx, edi
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::Run_struct_HWND____]
lea ecx, [esp + 0x3e8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], vtable.CMainDlg.4.0
mov dword [esp + 0x2c], vtable.CMainDlg.3.0
mov dword [esp + 0x30], vtable.CMainDlg.2.0
mov dword [esp + 0x34], vtable.CMainDlg.1.0
mov dword [esp + method.CMainDlg.virtual_0], vtable.CMainDlg.0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
cmp dword [esp + 0x3e0], 0
jne 0x406a08
lea ecx, [esp + 0x28]
call dword [sym.imp.soui.dll_public_virtual:_void___thiscall_SOUI::SHostWnd::destructor_void_]
lea ecx, [esp + 8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x406934
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x406941
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40694e
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x1084]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esi + 0x1080]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [esi + 0xe70]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x406979
push eax
call edi
mov eax, dword [esi + 0xc60]
test eax, eax
je 0x406986
push eax
call edi
mov eax, dword [esi + 0xa50]
test eax, eax
je 0x406993
push eax
call edi
mov eax, dword [esi + 0x840]
test eax, eax
je 0x4069a0
push eax
call edi
mov eax, dword [esi + 0x630]
test eax, eax
je 0x4069ad
push eax
call edi
mov eax, dword [esi + 0x420]
test eax, eax
je 0x4069ba
push eax
call edi
mov eax, dword [esi + 0x210]
test eax, eax
je 0x4069c7
push eax
call edi
mov eax, dword [esi]
test eax, eax
je 0x4069d0
push eax
call edi
push 0x1088
push esi
call fcn.0042dc6f
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x63c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.0042d9e0
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401210
call fcn.0047a870
call fcn.0047a8c1
int3