Function at 0x4947d0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b79c4
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x260
mov eax, dword [0x645300]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x268], ecx
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x24c], 0
call dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_void_]
push 0x104
push 0x104
lea eax, [ebp - 0x238]
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.utilities4.dll_public_virtual:_wchar_t____stdcall_SOUI::SStringW::GetBuffer_int_]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push eax
push str.PATH
call edi
cmp eax, 0x104
jbe 0x494875
push eax
push eax
lea eax, [ebp - 0x238]
push eax
call esi
push eax
push str.PATH
call edi
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.utilities4.dll_public_virtual:_void___stdcall_SOUI::SStringW::ReleaseBuffer_int_]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00546d20
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x248]
call dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_wchar_t_const__]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_void_]
push 0x5fcb28
mov dword [ebp - 0x24c], 1
call dword [sym.imp.utilities4.dll_protected:_static_int___cdecl_SOUI::SStringW::SafeStrlen_wchar_t_const__]
mov edi, dword [ebp - 0x240]
lea ecx, [ebp - 0x248]
add esp, 4
mov esi, eax
call dword [sym.imp.utilities4.dll_protected:_struct_SOUI::TStringData____thiscall_SOUI::SStringW::GetData_void_const]
push 0x5fcb28
push esi
push edi
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x258]
call dword [sym.imp.utilities4.dll_protected:_bool___thiscall_SOUI::SStringW::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
mov esi, dword [sym.imp.utilities4.dll_public:_wchar_t_const____thiscall_SOUI::SStringW::operator_wchar_t_const__void_const]
lea ecx, [ebp - 0x258]
call esi
push eax
push 0
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.utilities4.dll_public_virtual:_int___stdcall_SOUI::SStringW::Insert_int__wchar_t_const__]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 1
call dword [sym.imp.utilities4.dll_public_virtual:_void___thiscall_SOUI::SStringW::destructor_void_]
lea ecx, [ebp - 0x238]
call esi
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 3
call dword [sym.imp.utilities4.dll_public:_void___thiscall_SOUI::SStringW::constructor_void_]
push str.bincef_
mov dword [ebp - 0x24c], 2
call dword [sym.imp.utilities4.dll_protected:_static_int___cdecl_SOUI::SStringW::SafeStrlen_wchar_t_const__]
mov edi, dword [ebp - 0x240]
lea ecx, [ebp - 0x248]
add esp, 4
mov esi, eax
call dword [sym.imp.utilities4.dll_protected:_struct_SOUI::TStringData____thiscall_SOUI::SStringW::GetData_void_const]
push str.bincef_
push esi
push edi
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x258]
call dword [sym.imp.utilities4.dll_protected:_bool___thiscall_SOUI::SStringW::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
lea ecx, [ebp - 0x258]
call dword [sym.imp.utilities4.dll_public:_wchar_t_const____thiscall_SOUI::SStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 1
call dword [sym.imp.utilities4.dll_public_virtual:_void___thiscall_SOUI::SStringW::destructor_void_]
push 0x30
call fcn.00543bf7
mov esi, eax
add esp, 4
mov dword [ebp - 0x24c], esi
push 0x30
push 0
push esi
call fcn.00546d20
mov dword [ebp - 4], 4
add esp, 0xc
mov dword [0x6527e0], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.browser::MainContextImpl.0
mov word [esi + 4], 1
xorps xmm0, xmm0
mov byte [esi + 6], 0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov byte [ebp - 4], 7
push 0xb
push str.about:blank
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00426080
mov edi, dword [ebp - 0x268]
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x10a4]
mov dword [edi + 0x10a4], esi
test ecx, ecx
je 0x494a96
mov eax, dword [ecx]
push 1
call dword [eax + 0x24]
push 8
call fcn.00543bf7
mov esi, eax
add esp, 4
mov dword [ebp - 0x24c], esi
mov dword [esi], vtable.SOUI::TObjRefImpl_struct_SOUI::IMsgLoopFactory_.0
mov dword [esi + 4], 1
mov dword [esi], vtable.SOUI::SMsgLoopFactory.0
mov edx, dword [edi + 0x1098]
add edx, 4
push esi
push edx
mov ecx, dword [edx]
call dword [ecx + 0x24]
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x22c], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov dword [ebp - method.CefMainArgs.virtual_0], vtable.CefMainArgs.0
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x264]
push 0x13
push str.xunyouwebhelper.exe
movups xmmword [ebp - 0x264], xmm0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00406ff0
push 0x30
mov byte [ebp - 4], 9
call fcn.00543bf7
mov edi, eax
add esp, 4
mov dword [ebp - 0x26c], edi
push 0x30
push 0
push edi
call fcn.00546d20
mov dword [edi + 4], 0x5ea258
add esp, 0xc
mov dword [edi + 0xc], 0x5ea21c
mov dword [edi + 0x2c], vtable.CefBaseRefCounted.0
mov dword [edi], vtable.CefApp.0
mov eax, dword [0x5ea25c]
mov dword [ebp - 0x24c], 8
mov dword [edi + eax + 4], vtable.CefApp.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.browser::ClientApp.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.browser::ClientApp.1.0
mov eax, dword [edi + 0xc]
mov dword [edi + 8], vtable.CefBrowserProcessHandler.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 0xc], vtable.CefBrowserProcessHandler.1.0
mov eax, dword [edi + 4]
mov dword [edi], vtable.browser::ClientAppBrowser.2.0
mov dword [edi + 8], vtable.browser::ClientAppBrowser.1.0
mov eax, dword [eax + 4]
mov dword [eax + edi + 4], vtable.browser::ClientAppBrowser.0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x28]
mov dword [ecx + edi], eax
mov dword [edi + 0x10], vtable.CefStringBase_struct_CefStringTraitsUTF16_.0
mov dword [edi + 0x14], 0
mov byte [edi + 0x18], 0
cmp dword [ebp - 0x254], 0
je 0x494c44
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0x14], eax
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
lea eax, [ebp - 0x264]
push dword [edi + 0x14]
mov byte [edi + 0x18], 1
cmp dword [ebp - 0x250], 0xf
push dword [ebp - 0x254]
cmova eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.libcef.dll_cef_string_utf8_to_utf16]
add esp, 0xc
mov dword [ebp - 4], 0xc
lea esi, [edi + 0x1c]
mov dword [ebp - 0x23c], esi
push 0x14
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00543bf7
mov byte [ebp - 4], 9
add esp, 4
mov dword [ebp - 0x23c], edi
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x24], 0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x250]
cmp ecx, 0xf
jbe 0x494cd9
mov edx, dword [ebp - 0x264]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x494ccf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x494d80
push ecx
push edx
call fcn.00543bbf
add esp, 8
mov ecx, dword [ebp - 0x268]
push 0
push ecx
mov eax, esp
mov dword [ebp - 0x254], 0
mov esi, dword [ecx + 0x10a4]
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
mov dword [eax], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x22c]
mov ecx, esi
push eax
call fcn.00448b70
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov byte [ebp - 4], 0xf
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
add ecx, 4
add ecx, edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.utilities4.dll_public_virtual:_void___thiscall_SOUI::SStringW::destructor_void_]
lea ecx, [ebp - 0x248]
mov dword [ebp - method.CefStructBase_struct_CefMainArgsTraits_.virtual_0], vtable.CefStructBase_struct_CefMainArgsTraits_.0
call esi
lea ecx, [ebp - 0x238]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00543bb1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.00560663
int3