Function at 0x487a70
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5c72dd
mov eax, dword fs:[0]
push eax
sub esp, 0x30c
mov eax, dword [0x63727c]
xor eax, esp
mov dword [esp + 0x308], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x63727c]
xor eax, esp
push eax
lea eax, [esp + 0x320]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x330]
push 0x1088
call fcn.0053e6be
add esp, 4
mov dword [esp + 0x28], eax
xor ebp, ebp
mov dword [esp + 0x328], ebp
cmp eax, ebp
je 0x487ae0
push ebp
mov ecx, eax
call fcn.00484350
mov edi, eax
mov dword [esp + 0x20], edi
jmp 0x487ae6
mov dword [esp + 0x20], ebp
mov edi, ebp
push 0x206
lea ecx, [esp + 0x11a]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x120], ax
call fcn.00586030
add esp, 0xc
push 0x208
lea edx, [esp + 0x118]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x114]
push 0x5c
push eax
call fcn.00588a63
mov ecx, 0x5e2d4c
lea edx, [eax + 2]
add esp, 8
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
cmp ax, bp
jne 0x487b36
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x328], 1
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x14]
push edx
mov ecx, edi
mov byte [esp + 0x32c], 2
call fcn.00486f80
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00486ec0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [esp + 0x28]
mov edx, dword [edx + 0x10]
push eax
call edx
push 0xe8
call fcn.0053e6be
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x328], 3
cmp esi, ebp
je 0x487be7
mov edi, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x30]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SObjectDefaultRegister::constructor_void_]
push eax
push 0x5e2d38
push ebx
push edi
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 edi, dword [esp + 0x20]
mov dword [esi], vtable.SOUI::SApplication.1.0
mov dword [esi + 4], vtable.SOUI::SApplication.0
jmp 0x487be9
xor esi, esi
mov byte [esp + 0x328], 2
mov dword [0x638fc0], esi
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SSkinObjBase::GetClassType_void_]
cmp eax, 2
jne 0x487c0a
lea ecx, [esi + 4]
call fcn.004871b0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487c23
lea ecx, [esi + 4]
call fcn.00487200
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SSkinObjBase::GetClassType_void_]
cmp eax, 2
jne 0x487c3c
lea ecx, [esi + 4]
call fcn.00487250
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SCheckBox::GetClassType_void_]
cmp eax, 1
jne 0x487c55
lea ecx, [esi + 4]
call fcn.004872a0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SImageWnd::GetClassType_void_]
cmp eax, 1
jne 0x487c6e
lea ecx, [esi + 4]
call fcn.004872f0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487c87
lea ecx, [esi + 4]
call fcn.00487340
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SMCListView::GetClassType_void_]
cmp eax, 1
jne 0x487ca0
lea ecx, [esi + 4]
call fcn.00487390
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SStatic::GetClassType_void_]
cmp eax, 1
jne 0x487cb9
lea ecx, [esi + 4]
call fcn.004873e0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487cd2
lea ecx, [esi + 4]
call fcn.00487430
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487ceb
lea ecx, [esi + 4]
call fcn.00487480
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SActiveX::GetClassType_void_]
cmp eax, 1
jne 0x487d04
lea ecx, [esi + 4]
call fcn.004874d0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::STileView::GetClassType_void_]
cmp eax, 1
jne 0x487d1d
lea ecx, [esi + 4]
call fcn.00487520
push 8
call fcn.0053e6be
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x328], 4
cmp eax, ebp
je 0x487d42
mov ecx, eax
call fcn.0046eac0
mov esi, eax
jmp 0x487d44
xor esi, esi
mov ecx, dword [0x638fc0]
push esi
mov byte [esp + 0x32c], 2
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, ebp
je 0x487dca
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x18]
push eax
push ebp
mov byte [esp + 0x330], 5
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 8
push ebp
push esi
call eax
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [0x638fc0]
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 ecx, dword [esp + 0x18]
mov byte [esp + 0x328], 2
cmp ecx, ebp
je 0x487dca
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov byte [esp + 0x32c], 6
call fcn.004870a0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], str.uires.zip
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], 0x5d3001
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
push ebp
lea edx, [esp + 0x34]
push edx
call eax
mov ecx, dword [0x638fc0]
push 1
push 0xb4
push 0x5dc960
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::InitXmlNamedID_struct_SOUI::TNAMEDVALUE_int__const___int__int_]
mov ecx, dword [esp + 0x1c]
push str.uidef:xml_init
push ecx
mov ecx, dword [0x638fc0]
add ecx, 0x10
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
mov dword [esp + 0x24], ebp
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
mov bl, 7
push edx
mov ecx, esi
mov byte [esp + 0x32c], bl
call fcn.00487010
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x487e92
mov ecx, dword [0x638fc0]
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::SetTranslator_struct_SOUI::ITranslatorMgr__]
push ebp
push ebp
mov ecx, 0x639248
call fcn.0042a220
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push 0x639248
call edx
lea ecx, [esp + 0x4c]
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::constructor_void_]
mov ecx, dword [0x638fc0]
push str.LAYOUT
push str.XML_MESSAGE
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x334], 8
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 0x487ee4
push ebp
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 ecx, dword [esp + 0x24]
mov byte [esp + 0x328], 6
cmp ecx, ebp
je 0x487f0c
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x328], 2
cmp ecx, ebp
je 0x487f23
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x328], 1
cmp ecx, ebp
je 0x487f3a
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x328], 0xffffffff
cmp ecx, ebp
je 0x487f54
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov eax, esi
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.00584447
add esp, 0x318
ret