Function at 0x4878b0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5c70bd
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.0053e4de
add esp, 4
mov dword [esp + 0x28], eax
xor ebp, ebp
mov dword [esp + 0x328], ebp
cmp eax, ebp
je 0x487920
push ebp
mov ecx, eax
call fcn.00484180
mov edi, eax
mov dword [esp + 0x20], edi
jmp 0x487926
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.00585e50
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.00588883
mov ecx, 0x5e2e0c
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 0x487976
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.00486dc0
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.00486d00
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.0053e4de
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x328], 3
cmp esi, ebp
je 0x487a27
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 0x5e2df8
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 0x487a29
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 0x487a4a
lea ecx, [esi + 4]
call fcn.00486ff0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487a63
lea ecx, [esi + 4]
call fcn.00487040
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SSkinObjBase::GetClassType_void_]
cmp eax, 2
jne 0x487a7c
lea ecx, [esi + 4]
call fcn.00487090
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SCheckBox::GetClassType_void_]
cmp eax, 1
jne 0x487a95
lea ecx, [esi + 4]
call fcn.004870e0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SImageWnd::GetClassType_void_]
cmp eax, 1
jne 0x487aae
lea ecx, [esi + 4]
call fcn.00487130
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487ac7
lea ecx, [esi + 4]
call fcn.00487180
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SMCListView::GetClassType_void_]
cmp eax, 1
jne 0x487ae0
lea ecx, [esi + 4]
call fcn.004871d0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SStatic::GetClassType_void_]
cmp eax, 1
jne 0x487af9
lea ecx, [esi + 4]
call fcn.00487220
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487b12
lea ecx, [esi + 4]
call fcn.00487270
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SWindow::GetClassType_void_]
cmp eax, 1
jne 0x487b2b
lea ecx, [esi + 4]
call fcn.004872c0
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::SActiveX::GetClassType_void_]
cmp eax, 1
jne 0x487b44
lea ecx, [esi + 4]
call fcn.00487310
mov esi, dword [0x638fc0]
call dword [sym.imp.soui.dll_public:_static_int___cdecl_SOUI::STileView::GetClassType_void_]
cmp eax, 1
jne 0x487b5d
lea ecx, [esi + 4]
call fcn.00487360
push 8
call fcn.0053e4de
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x328], 4
cmp eax, ebp
je 0x487b82
mov ecx, eax
call fcn.0046e8e0
mov esi, eax
jmp 0x487b84
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 0x487c0a
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 0x487c0a
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.00486ee0
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 0xb5
push 0x5dc9b0
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.00486e50
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x487cd2
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 0x487d24
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 0x487d4c
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 0x487d63
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 0x487d7a
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 0x487d94
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.00584267
add esp, 0x318
ret