Function at 0x457400
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
mov eax, dword [0x519074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov dword [ebp - 0x5fc], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x1088
call fcn.004760bd
mov edi, eax
xor ecx, ecx
xor eax, eax
add esp, 4
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 word [edi + 0x218], cx
lea ecx, [edi + 0x1080]
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 ecx, [edi + 0x1084]
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__]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00499430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00498817
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x5ec]
mov dword [ebp - 0x600], 0
mov dword [ebp - 0x5f8], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov esi, dword [edi + 0x1084]
push str.render_gdi.dll
push str.render_gdi.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, [ebp - 0x5ec]
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, [ebp - 0x5f8]
push eax
push dword [ebp - 0x5ec]
lea ecx, [edi + 0x210]
call fcn.00457c30
lea ecx, [ebp - 0x5ec]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x5f0]
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 0x502688
push 0x502688
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, [ebp - 0x5f0]
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, [ebp - 0x5ec]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov eax, dword [ebp - 0x5f0]
mov ecx, dword [edi + 0x1084]
push eax
push dword [eax - 8]
push ecx
push dword [ecx - 8]
lea ecx, [ebp - 0x5ec]
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, [ebp - 0x600]
mov ecx, edi
push eax
push dword [ebp - 0x5ec]
call fcn.00457c30
lea ecx, [ebp - 0x5ec]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x5f0]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [ebp - 0x5f8]
push dword [ebp - 0x600]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.004760bd
mov esi, dword [ebp - 0x5f8]
lea ecx, [ebp - 0x5f0]
add esp, 4
mov dword [ebp - 0x5f0], 0
mov ebx, eax
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SObjectDefaultRegister::constructor_void_]
push eax
push str.SOUIHOST
push dword [ebp - 0x5fc]
mov ecx, ebx
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___int_]
lea eax, [ebp - 0x5ec]
mov dword [ebx], vtable.SOUI::SApplication.1.0
push eax
push 0
mov dword [ebx + 4], vtable.SOUI::SApplication.0
mov dword [ebp - 0x5ec], 0
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [ebp - 0x5ec]
add esp, 8
mov esi, dword [ebp - 0x5fc]
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
push dword [ebp - 0x5ec]
mov ecx, ebx
call dword [sym.imp.soui.dll_public:_unsigned_int___thiscall_SOUI::SApplication::LoadSystemNamedResource_struct_SOUI::IResProvider__]
mov ecx, dword [ebp - 0x5ec]
test ecx, ecx
je 0x4576fc
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x5f4]
mov dword [ebp - 0x5f4], 0
push eax
push 0
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [ebp - 0x5f4]
add esp, 8
mov eax, dword [ecx]
push 0
push esi
call dword [eax + 0xc]
push 1
push 0x10
push 0x4fea50
mov ecx, ebx
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::InitXmlNamedID_struct_SOUI::TNAMEDVALUE_int__const___int__int_]
push str.uidef:xml_init
push dword [ebp - 0x5f4]
lea ecx, [ebx + 0x10]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
lea ecx, [ebp - 0x5e8]
call fcn.0040a7f0
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x5e8]
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SHostWnd::Create_struct_HWND_____int__int__int__int_]
push 0
push 0
push pe_nt_image_headers32
push dword [ebp - 0x3a0]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x3a0]
lea ecx, [ebp - 0x3ac]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::CenterWindow_struct_HWND____]
push 1
lea ecx, [ebp - 0x3ac]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push dword [ebp - 0x3a0]
mov ecx, ebx
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::Run_struct_HWND____]
lea ecx, [ebp - 0x5e8]
mov dword [ebp - 0x5fc], eax
call fcn.0040ab00
mov edx, dword [ebx]
mov ecx, ebx
push 1
call dword [edx]
mov ecx, dword [ebp - 0x5f4]
test ecx, ecx
je 0x4577dc
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x5f8]
test ecx, ecx
je 0x4577eb
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x600]
test ecx, ecx
je 0x4577fa
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 0x457825
push eax
call esi
mov eax, dword [edi + 0xc60]
test eax, eax
je 0x457832
push eax
call esi
mov eax, dword [edi + 0xa50]
test eax, eax
je 0x45783f
push eax
call esi
mov eax, dword [edi + 0x840]
test eax, eax
je 0x45784c
push eax
call esi
mov eax, dword [edi + 0x630]
test eax, eax
je 0x457859
push eax
call esi
mov eax, dword [edi + 0x420]
test eax, eax
je 0x457866
push eax
call esi
mov eax, dword [edi + 0x210]
test eax, eax
je 0x457873
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x45787c
push eax
call esi
push 0x1088
push edi
call fcn.00476085
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x5fc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00476066
mov esp, ebp
pop ebp
ret 0x10