Function at 0x47f2b0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5c45cf
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x62f570]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62f570]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
push 0x1088
mov ebx, ecx
call fcn.0053a82a
add esp, 4
mov dword [esp + 0x28], eax
xor edi, edi
mov dword [esp + 0x328], edi
cmp eax, edi
je 0x47f315
push eax
call fcn.004833c0
mov ebp, eax
jmp 0x47f317
xor ebp, ebp
push 0x206
lea ecx, [esp + 0x11a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x120], ax
call fcn.00589f50
add esp, 0xc
push 0x208
lea edx, [esp + 0x118]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x114]
push 0x5c
push eax
call fcn.0058444b
mov ecx, 0x5f59cc
lea edx, [eax + 2]
add esp, 8
sub edx, ecx
jmp 0x47f370
movzx eax, word [ecx]
mov word [ecx + edx], ax
add ecx, 2
cmp ax, di
jne 0x47f370
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [esp + 0x24], edi
mov dword [esp + 0x328], 1
mov dword [esp + 0x18], edi
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + 0x32c], 2
call fcn.004832f0
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.004831e0
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [esp + 0x24]
mov edx, dword [edx + 0x10]
push eax
call edx
push 0xe8
call fcn.0053a82a
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov byte [esp + 0x328], 3
cmp esi, edi
je 0x47f422
mov edx, dword [esp + 0x18]
mov eax, dword [sym.imp.soui.dll_const_SOUI::SObjectDefaultRegister::vftable]
push edi
lea ecx, [esp + 0x2c]
push ecx
push str.SOUIHOST
push ebx
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
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.0
mov dword [esi + 4], vtable.SOUI::SApplication.1.0
mov eax, esi
jmp 0x47f424
xor eax, eax
mov byte [esp + 0x328], 2
lea ecx, [eax + 4]
mov dword [0x6407b0], eax
call fcn.004819d0
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481a20
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481a70
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481ac0
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481b10
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481b60
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481bb0
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481c00
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481c50
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481ca0
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481cf0
mov ecx, dword [0x6407b0]
add ecx, 4
call fcn.00481d40
push 8
call fcn.0053a82a
add esp, 4
cmp eax, edi
je 0x47f4f8
mov dword [eax], vtable.SOUI::TObjRefImpl_struct_SOUI::IRealWndHandler_.0
mov dword [eax + 4], 1
mov dword [eax], vtable.SOUI::CRealWndHandler.0
mov esi, eax
jmp 0x47f4fa
xor esi, esi
mov ecx, dword [0x6407b0]
push esi
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::SetRealWndHandler_struct_SOUI::IRealWndHandler__]
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
push str.soui_sys_resource.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
je 0x47f578
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
push eax
push edi
mov byte [esp + 0x330], 4
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 8
push edi
push esi
call eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [0x6407b0]
call dword [sym.imp.soui.dll_public:_unsigned_int___thiscall_SOUI::SApplication::LoadSystemNamedResource_struct_SOUI::IResProvider__]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [esp + 0x328], 2
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x47f578
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebp
mov byte [esp + 0x32c], 5
call fcn.00483150
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], str.uires.zip
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], 0x5e1790
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push edi
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [0x6407b0]
push 1
push 0xb4
push 0x5e9b38
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::InitXmlNamedID_struct_SOUI::TNAMEDVALUE_int__const___int__int_]
mov ecx, dword [esp + 0x20]
push str.uidef:xml_init
push ecx
mov ecx, dword [0x6407b0]
add ecx, 0x10
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
mov dword [esp + 0x1c], edi
lea edx, [esp + 0x1c]
mov bl, 6
push edx
mov ecx, ebp
mov byte [esp + 0x32c], bl
call fcn.004830c0
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x47f63c
mov ecx, dword [0x6407b0]
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::SetTranslator_struct_SOUI::ITranslatorMgr__]
push edi
push edi
mov ecx, 0x634730
call fcn.004263c0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push 0x634730
call edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::constructor_void_]
push str.LAYOUT
push str.XML_MESSAGE
lea eax, [esp + 0x54]
mov byte [esp + 0x330], 7
mov ecx, dword [0x6407b0]
push eax
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::LoadXmlDocment_class_pugi::xml_document___wchar_t_const___wchar_t_const__]
test eax, eax
je 0x47f68e
push edi
push str.SOUI
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x58]
call dword [sym.imp.utilities.dll_public:_class_pugi::xml_node___thiscall_pugi::xml_node::child_wchar_t_const___bool_]
mov edx, dword [eax]
push edx
call dword [sym.imp.soui.dll_int___cdecl_SOUI::SetMsgTemplate_class_pugi::xml_node_]
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x328], bl
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::destructor_void_]
mov byte [esp + 0x328], 5
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x47f6b6
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov byte [esp + 0x328], 2
mov ecx, dword [esp + 0x20]
cmp ecx, edi
je 0x47f6cd
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov byte [esp + 0x328], 1
mov ecx, dword [esp + 0x18]
cmp ecx, edi
je 0x47f6e4
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esp + 0x328], 0xffffffff
mov ecx, dword [esp + 0x24]
cmp ecx, edi
je 0x47f6fe
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, ebp
mov ecx, dword [esp + 0x320]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x308]
xor ecx, esp
call fcn.0057ffd2
add esp, 0x318
ret