Function at 0x514d20
Capabilities:
Check if file exists
Create process on windows
Create thread
Query or enumerate registry value
Set registry value

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 0x609b09
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x138
mov eax, dword [0x6b000c]
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 - 0xc0], ecx
mov ecx, 0x6b96f8
mov dword [ebp - 0xd0], 0
call fcn.004e9530
test al, al
jne 0x514f53
mov eax, dword [0x6b0c60]
cmp eax, 0x3a8
je 0x514da8
cmp eax, 0x3b6
je 0x514d9d
push 0x409
jmp 0x514da2
push 0x404
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0x130], vtable.CSkinLostDlg.0
mov dword [ebp - 0x110], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x10c]
mov dword [ebp - 0xd4], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xfc], 0
mov byte [ebp - 4], 7
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ebp - 0xf4], eax
lea eax, [ebp - 0x130]
mov dword [ebp - 0xf8], str.STATIC
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0xec], 1
mov dword [ebp - 0xe8], 0
mov dword [ebp - 4], 9
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x514eae
call fcn.005617a2
mov dword [ebp - 0x11c], eax
test eax, eax
jne 0x514eae
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.0053d870
jmp 0x515916
push 0
push 0
push eax
call fcn.005618a4
lea eax, [ebp - 0x130]
mov dword [ebp - 0x128], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0xe0], 0x6be5b0
mov byte [ebp - 0xdc], 0
mov byte [ebp - 4], 0xa
push 0x6be5b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6be5c8]
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x128]
mov byte [ebp - 0xdc], 1
mov dword [0x6be5c8], eax
mov byte [ebp - 4], 9
push 0x6be5b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x4c7dc0
push esi
push 0xea
push dword [0x6b5140]
mov byte [ebp - 0xdc], 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.0053d870
jmp 0x515916
push dword [0x6b513c]
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
add esp, 4
push str..skin
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetSkinExt_wchar_t_const__]
add esp, 4
mov dword [ebp - 4], 0xb
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x515936
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xbc]
push 0x6b88a0
call fcn.0040c5a0
test al, al
jne 0x514fd6
mov ecx, 0x6b88a0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x514fb6
sub ecx, edx
sar ecx, 1
push ecx
push 0x6b88a0
lea ecx, [ebp - 0xbc]
call fcn.0040c9d0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xbc]
push 6
push str._skin_
mov dword [ebp - 0xd0], 1
call fcn.0040ceb0
push 0
push 0x639ee0
lea ecx, [ebp - 0xbc]
call fcn.0040ceb0
mov esi, dword [ebp - 0xbc]
push esi
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetSkinPath_wchar_t_const__]
mov eax, 1
add esp, 4
mov dword [ebp - 0xd0], eax
and eax, 0xfffffffe
mov dword [ebp - 0xd0], eax
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x51504d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [0x6b0c60], 0x3a8
je 0x51506a
push dword [0x6b9770]
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_wchar_t_const__]
add esp, 4
jmp 0x51507f
push dword [0x6b977c]
push dword [0x6b9778]
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetResourceZip_void___unsigned_long_int_]
add esp, 8
mov esi, dword [ebp - 0xc0]
push str._uninstall
push esi
call fcn.00587dd7
add esp, 8
test eax, eax
je 0x515329
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xcc], 0
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xbc], 4
push eax
push 0
push str.memid
push 0x650fc8
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0xcc], 1
je 0x51526b
cmp dword [0x6b0c60], 0x3a8
jne 0x51526b
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
movlpd qword [ebp - 0xe0], xmm0
call fcn.004e0910
mov ecx, eax
mov dword [ebp - 0xc0], eax
or ecx, edx
mov dword [ebp - 0xc4], edx
je 0x5151a4
mov eax, dword [0x6b8ff8]
mov ecx, eax
mov esi, dword [0x6b8ffc]
or ecx, esi
jne 0x515150
lea eax, [ebp - 0xe0]
push eax
call fcn.005b9077
mov esi, dword [ebp - 0xdc]
add esp, 4
mov eax, dword [ebp - 0xe0]
jmp 0x51515c
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xdc], esi
mov ecx, eax
mov edx, esi
sub ecx, dword [ebp - 0xc0]
sbb edx, dword [ebp - 0xc4]
test edx, edx
jg 0x51519a
jl 0x51519a
test ecx, ecx
jb 0x51519a
test edx, edx
jl 0x5151a4
jg 0x51519a
cmp ecx, 0x3f480
jbe 0x5151a4
test edx, edx
jl 0x51526b
jg 0x51519a
cmp ecx, 0x278d00
jbe 0x51526b
push esi
push eax
call fcn.004e0850
add esp, 8
push 0x90c
call fcn.00560437
mov esi, eax
add esp, 4
mov dword [ebp - 0xd4], esi
mov dword [ebp - 4], 0x11
mov ecx, esi
call fcn.004dacb0
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x908]
mov dword [esi], vtable.CSaleProDlg.3.0
mov dword [esi + 0x10], vtable.CSaleProDlg.4.0
mov dword [esi + 0x24], vtable.CSaleProDlg.0
mov dword [esi + 0x28], vtable.CSaleProDlg.5.0
mov dword [esi + 0x2c], vtable.CSaleProDlg.1.0
mov dword [esi + 0x30], vtable.CSaleProDlg.2.0
mov dword [esi + 0x900], 0x31
mov dword [esi + 0x904], 1
mov dword [ebp - 0xc4], edi
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x515940
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x96c80000
push 0x639ee0
push 0
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
jmp 0x515916
push 0
push str.RecoverMasterWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
sub esp, 0x18
mov esi, eax
mov ecx, esp
mov dword [ebp - 0xd4], esp
push 0x6b0db8
call fcn.00420d90
mov dword [ebp - 4], 0xe
push 0
mov dword [ebp - 4], 0xffffffff
mov edx, 4
mov ecx, esi
call fcn.004e0d20
add esp, 0x1c
cmp eax, 6
jne 0x515916
test esi, esi
je 0x5152c8
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 4], 0xf
mov edx, 0x6b88a0
push str.uninst.exe
lea ecx, [ebp - 0xc0]
call fcn.0048e450
add esp, 4
mov esi, 2
mov dword [ebp - 0xd0], esi
push 5
push 0x6b88a0
push 0
push dword [ebp - 0xc0]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
and esi, 0xfffffffd
mov dword [ebp - 0xd0], esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xc0]
jmp 0x515901
push str._tjuninstall
push esi
call fcn.00587dd7
add esp, 8
test eax, eax
je 0x515349
push 0
push 2
call fcn.0046a2d0
jmp 0x515916
cmp byte [0x6b9735], 0
je 0x5154a7
push str._install_guide
push esi
call fcn.00587dd7
add esp, 8
test eax, eax
je 0x5154a7
push 0x930
call fcn.00560437
mov esi, eax
add esp, 4
mov dword [ebp - 0xc4], esi
mov dword [ebp - 4], 0x15
mov ecx, esi
call fcn.004dacb0
mov byte [ebp - 4], 0x16
lea eax, [esi + 0x904]
mov dword [esi], vtable.CInstallGuideDlg.1.0
mov dword [esi + 0x10], vtable.CInstallGuideDlg.3.0
mov dword [esi + 0x24], vtable.CInstallGuideDlg.5.0
mov dword [esi + 0x28], vtable.CInstallGuideDlg.4.0
mov dword [esi + 0x2c], vtable.CInstallGuideDlg.2.0
mov dword [esi + 0x30], vtable.CInstallGuideDlg.0
mov word [esi + 0x900], 1
mov dword [ebp - 0xbc], eax
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x51594a
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x904], eax
mov byte [ebp - 4], 0x18
mov dword [esi + 0x908], 0
mov dword [esi + 0x90c], 0
mov dword [esi + 0x910], 0x65189c
mov dword [esi + 0x914], 0
mov dword [esi + 0x918], 0
mov byte [ebp - 4], 0x19
mov dword [esi + 0x920], 0x65189c
mov dword [esi + 0x924], 0
mov dword [esi + 0x928], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x96c80000
push 0x639ee0
push 0
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
mov al, byte [esi + 0x900]
mov ecx, esi
mov byte [ebp - 0xc5], al
mov eax, dword [esi]
push 1
call dword [eax + 0x1c]
cmp byte [ebp - 0xc5], 0
je 0x515916
mov esi, dword [ebp - 0xc0]
push str._pathfile:
push esi
call fcn.00587dd7
mov edx, eax
add esp, 8
test edx, edx
je 0x5154eb
add edx, 0x14
jne 0x5154c4
xor ecx, ecx
jmp 0x5154df
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5154d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x6b9684
call fcn.0040c9d0
push 0
push str.RecoverMasterWndClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x515522
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x515916
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x515916
cmp byte [0x6b8f69], 0
je 0x515541
call fcn.00554410
test eax, eax
je 0x515541
call fcn.00554540
test al, al
jne 0x515916
mov edx, str.ext.dll
lea ecx, [ebp - 0xcc]
call fcn.0048e550
mov dword [ebp - 4], 0x1b
push dword [ebp - 0xcc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x515574
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 1
push eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x13c], 0
push eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
push 1
push 3
call fcn.0046a2d0
mov ecx, dword [ebp - 0xc0]
push str._noWelcome
push ecx
call fcn.00587dd7
add esp, 8
test eax, eax
jne 0x515682
cmp dword [0x6b0c60], 0x3a8
jne 0x515601
mov eax, dword [0x6b9748]
cmp dword [eax - 0xc], 0
jne 0x515682
mov eax, dword [0x6b9740]
cmp dword [eax - 0xc], 0
jne 0x515682
push 0x900
call fcn.00560437
mov esi, eax
add esp, 4
mov dword [ebp - 0xc4], esi
mov byte [ebp - 4], 0x1c
mov ecx, esi
call fcn.004dacb0
mov byte [ebp - 4], 0x1d
mov dword [esi], vtable.CWelcomeDlg.4.0
mov dword [esi + 0x10], vtable.CWelcomeDlg.3.0
mov dword [esi + 0x24], vtable.CWelcomeDlg.5.0
mov dword [esi + 0x28], vtable.CWelcomeDlg.2.0
mov dword [esi + 0x2c], vtable.CWelcomeDlg.1.0
mov dword [esi + 0x30], vtable.CWelcomeDlg.0
mov byte [ebp - 4], 0x1b
mov ecx, esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x96c80000
push 0x639ee0
push 0
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, esi
call dword [sym.imp.ycomuiu.dll_public:_unsigned_int___thiscall_DuiLib::CWindowWnd::ShowModal_void_]
mov ax, word [0x65d958]
movups xmm0, xmmword [str.main.log]
push 0x6e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push 0
push eax
movups xmmword [ebp - 0x98], xmm0
call fcn.00588800
add esp, 0xc
call fcn.0040bf10
mov ecx, eax
test ecx, ecx
je 0x515954
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x98]
push eax
push 0x6b88a0
lea eax, [ebp - 0xc0]
push str._s_s
push eax
call fcn.0040d300
add esp, 0x10
lea eax, [ebp - 0x98]
push 0x104
push eax
push str.c:_ftlog.log
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [0x6b8fa0], 0
setne byte [0x6b6c18]
mov byte [ebp - 4], 0x1b
mov eax, edi
mov edx, dword [ebp - 0xc0]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x515739
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xed0
call fcn.00560437
add esp, 4
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0x21
mov ecx, eax
call fcn.004ada80
mov dword [ebp - 0xbc], eax
mov byte [ebp - 4], 0x1b
test eax, eax
je 0x5158e3
mov ecx, dword [0x6b92e0]
add ecx, 0xfffffff0
call fcn.0040c950
lea esi, [eax + 0x10]
mov dword [ebp - 0x144], esi
mov byte [ebp - 4], 0x23
mov ecx, dword [ebp - 0xbc]
push 0
push 0x258
push 0x320
push 0
push 0
push 0
push 0x10cb0000
push esi
push 0
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
mov ecx, dword [ebp - 0xbc]
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
mov ecx, dword [ebp - 0xbc]
push 0xc9
call dword [sym.imp.ycomuiu.dll_public:_void___thiscall_DuiLib::CWindowWnd::SetIcon_unsigned_int_]
call fcn.00552c40
test eax, eax
jne 0x5158c2
mov ecx, dword [ebp - 0xbc]
call dword [sym.imp.ycomuiu.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
mov edi, eax
mov dword [ebp - 0xc0], 0
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 4
push eax
lea eax, [ebp - 0xc0]
push eax
push 0
push str.UpdateDay
push 0x650fc8
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0xa8]
mov dword [0x6b1b98], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
push eax
call edi
mov ax, word [ebp - 0xa2]
cmp ax, word [ebp - 0xc0]
je 0x5158bf
lea eax, [ebp - 0xb8]
push eax
call edi
movzx eax, word [ebp - 0xb2]
push 4
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xbc]
push eax
push 4
push str.UpdateDay
push 0x650fc8
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
movzx eax, word [ebp - 0xa2]
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xdc]
push eax
push 0
push 0x6b1b80
push 0x553ce0
push 0
push 0
mov dword [0x6b1b94], 1
mov dword [0x6b1b90], 0
call fcn.005b6ff3
add esp, 0x18
mov dword [0x6b1b8c], eax
or edi, 0xffffffff
call dword [sym.imp.ycomuiu.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_]
mov byte [ebp - 4], 0x1b
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x5158e3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0xd4]
test eax, eax
je 0x5158f4
push eax
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xcc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x515916
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.0055f9be
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
push 0x80004005
call fcn.0040b250
int3