Function at 0x10038520
Capabilities:
Check if file exists
Create service
Get common file path
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e470c
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x101237f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x448], esi
call fcn.10004e30
mov ecx, eax
test ecx, ecx
je 0x10038f4e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x44c], edi
mov dword [ebp - 4], 0
mov dword [ebp - method.mf_bind_t_class_CInstaller__class_CInstaller___void_.virtual_0], vtable.mf_bind_t_class_CInstaller__class_CInstaller___void_.0
mov dword [ebp - 0x430], 0x10037b90
mov dword [ebp - 0x42c], esi
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push eax
call fcn.1002fdf0
add esp, 4
mov byte [ebp - 4], 0
call fcn.10031050
mov esi, eax
call fcn.100310d0
mov ecx, eax
call fcn.100311f0
mov ecx, dword [esi]
push dword [eax]
push esi
call dword [ecx + 0x24]
push eax
push str.install_type:_d__install_version:_s
call fcn.100350d0
mov esi, dword [ebp - 0x448]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
call fcn.1002fdf0
add esp, 0x10
mov byte [ebp - 4], 0
lea eax, [esi + 4]
mov dword [ebp - 0x458], eax
push eax
call fcn.100310d0
mov ecx, eax
call fcn.10031200
push eax
call fcn.10042480
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 2
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
call fcn.1002fdf0
mov esi, dword [esi + 4]
lea ecx, [ebp - 0x438]
add esp, 0xc
mov byte [ebp - 4], 0
call fcn.10042bf0
push esi
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.100431d0
lea ecx, [ebp - 0x438]
call fcn.100434e0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call fcn.10042d00
push str.remove_all_pending_files
call fcn.100350d0
mov esi, dword [ebp - 0x448]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 3
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 5
push eax
call fcn.1002fdf0
push str..tmp
push dword [esi + 4]
mov byte [ebp - 4], 0
call fcn.10005300
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 4
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 6
push eax
call fcn.1002fdf0
push dword [esi + 4]
mov byte [ebp - 4], 0
push str.remove_all_.tmp_files_in__s
call fcn.100350d0
push str.update
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.1001c070
push dword [eax]
mov byte [ebp - 4], 7
call fcn.100049b0
mov edx, dword [ebp - 0x444]
add esp, 0x2c
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10038782
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.update
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.1001c070
push dword [eax]
mov byte [ebp - 4], 8
push str.Delete_directory_recursively:__s
call fcn.100350d0
mov edx, dword [ebp - 0x444]
add esp, 0x14
mov byte [ebp - 4], 0
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100387cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 5
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 9
push eax
call fcn.1002fdf0
add esp, 4
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10036ec0
and eax, 1
mov dword [ebp - 0x444], eax
jne 0x10038831
push 0xf
push str.copy_file_fail
lea ecx, [ebp - 0x44c]
call fcn.100105a0
mov edi, dword [ebp - 0x44c]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0x5d
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push eax
call fcn.1002fdf0
push dword [esi + 4]
mov byte [ebp - 4], 0
call fcn.100436c0
add esp, 8
mov ecx, esi
call fcn.10038fd0
test eax, eax
jne 0x1003889d
push 0x14
push str.write_path_reg_fail
lea ecx, [ebp - 0x44c]
mov dword [ebp - 0x444], eax
call fcn.100105a0
mov edi, dword [ebp - 0x44c]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0x60
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xb
push eax
call fcn.1002fdf0
add esp, 4
mov byte [ebp - 4], 0
call fcn.10016a00
mov ecx, eax
call fcn.10014990
neg eax
sbb eax, eax
inc eax
push eax
call fcn.10016a00
mov ecx, eax
call fcn.10014d50
neg eax
sbb eax, eax
inc eax
push eax
call fcn.10016a00
mov ecx, eax
call fcn.10014b70
neg eax
sbb eax, eax
inc eax
push eax
call fcn.10016a00
mov ecx, eax
call fcn.10014a70
neg eax
sbb eax, eax
inc eax
push eax
call fcn.10016a00
mov ecx, eax
call fcn.10014890
neg eax
sbb eax, eax
inc eax
push eax
mov eax, dword [ebp - 0x458]
push ecx
mov esi, esp
mov dword [ebp - 0x42c], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10004340
add esp, 4
lea ecx, [ebp - 0x470]
add eax, 0x10
mov dword [esi], eax
call fcn.10032140
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 0xc
call fcn.10032be0
mov esi, dword [ebp - 0x448]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0x61
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xd
push eax
call fcn.1002fdf0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x470]
call fcn.10032590
call fcn.10016a00
mov eax, dword [eax + 0x44]
sub eax, 0x10
push eax
call fcn.10004340
add esp, 4
add eax, 0x10
mov dword [ebp - 0x450], eax
mov ecx, str.__fromnewinstall
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10038a0e
test dx, dx
je 0x10038a02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10038a0e
add eax, 4
add ecx, 4
test dx, dx
jne 0x100389e0
mov dword [ebp - 0x440], 0
jmp 0x10038a19
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp - 0x450]
or eax, 0xffffffff
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10038a3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x440], 0
jne 0x10038aa0
push str.Call_SetArParm
call fcn.100350d0
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.1006a830
add esp, 0x10
lea eax, [ebp - 0x220]
push str..UtilsArCtrl.dll
push dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10038aa0
push str.SetArParm
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10038aa0
push 0
push 1
call eax
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x42c], 0x62
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0xf
push eax
call fcn.1002fdf0
push str.Create_Drivers
mov byte [ebp - 4], 0xc
call fcn.100350d0
push 0x210
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.1006a830
add esp, 0x14
call fcn.10004e30
mov ecx, eax
test ecx, ecx
je 0x10038f58
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x440], eax
cmp dword [0x10122020], 0
mov byte [ebp - 4], 0x10
je 0x10038c11
push str.GetNativeSystemInfo
push 0x100ee0e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10038c07
xorps xmm0, xmm0
mov dword [ebp - 0x474], 0
lea ecx, [ebp - 0x494]
push ecx
movups xmmword [ebp - 0x494], xmm0
movups xmmword [ebp - 0x484], xmm0
call eax
mov ax, word [ebp - 0x494]
cmp ax, 9
je 0x10038bfd
cmp ax, 6
je 0x10038bfd
cmp ax, 0xc
je 0x10038bfd
push str.IsWow64Process2
push 0x100eece0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x10038bf4
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x42c]
test eax, eax
je 0x10038bf4
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x450], cx
sete al
mov dword [0x10126ab0], eax
jmp 0x10038c07
xor eax, eax
mov dword [0x10126ab0], eax
jmp 0x10038c07
mov dword [0x10126ab0], 1
mov dword [0x10122020], 0
cmp dword [0x10126ab0], 0
lea eax, [ebp - 0x220]
je 0x10038c38
push str.UtilsJDDrv_x64.sys
push dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 8
push str.Pdrv_x64
jmp 0x10038c4e
push str.UtilsJDDrv.sys
push dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 8
push str.Pdrv_x86
lea ecx, [ebp - 0x440]
call fcn.100055f0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10038d9c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, eax
mov dword [ebp - 0x42c], ecx
test ecx, ecx
jne 0x10038c90
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x10038cde
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x220]
push eax
push 0
push 1
push 1
push 0xf01ff
push str.JDDrv
push str.JDDrv
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10038ccb
call esi
jmp 0x10038cd2
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x454], eax
test eax, eax
jne 0x10038cf8
call esi
jmp 0x10038d3d
push 0x10
push str.JDDrv
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x10038d14
call esi
jmp 0x10038d31
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10038d25
call esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x454]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push 0x1a
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ldsComputerZ.set
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp - 0x440]
cmp dword [esi - 4], 1
jle 0x10038d82
push dword [esi - 0xc]
lea ecx, [ebp - 0x440]
call fcn.10004d80
mov esi, dword [ebp - 0x440]
lea eax, [ebp - 0x428]
push eax
push str.JDDrv
push str.JianDesk
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x10038da2
mov esi, dword [ebp - 0x440]
mov eax, dword [ebp - 0x448]
mov dword [ebp - method.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.virtual_0], vtable.mf_bind_t_1_class_CInstaller__class_CInstaller___void__int_.0
mov dword [ebp - 0x434], 0x10037ba0
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], 0x63
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 0x11
push eax
call fcn.1002fdf0
add esp, 4
mov byte [ebp - 4], 0xc
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10038dfb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10016a00
mov ecx, eax
call fcn.10011c90
test eax, eax
je 0x10038e63
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.1006a830
mov eax, dword [ebp - 0x458]
add esp, 0xc
push str.UtilsJDeskHelper.exe
push dword [eax]
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.run_helper
call fcn.100350d0
add esp, 4
lea eax, [ebp - 0x428]
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push 0x100eec50
push eax
call fcn.10040f90
mov esi, dword [ebp - 0x448]
mov ecx, esi
call fcn.10039450
push str.install_end.
call fcn.100350d0
mov eax, dword [ebp - 0x444]
mov dword [ebp - method.mf_bind_t_2_class_CInstaller__class_CInstaller___void__int__wchar_t_const__.virtual_0], vtable.mf_bind_t_2_class_CInstaller__class_CInstaller___void__int__wchar_t_const__.0
mov dword [ebp - 0x438], 0x10037b70
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], edi
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 0x12
push eax
call fcn.1002fdf0
push str.real_install_end.
mov byte [ebp - 4], 0xc
call fcn.100350d0
lea ecx, [esi + 0x74]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
add esp, 0xc
mov dword [ebp - 0x42c], ecx
test ecx, ecx
je 0x10038ee3
mov eax, dword [ecx]
push ecx
call dword [eax]
mov ecx, dword [esi + 0x68]
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x10038ef4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0x14
test ecx, ecx
je 0x10038f05
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
lea ecx, [ebp - 0x470]
call fcn.100322d0
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10038f2f
mov ecx, dword [edi]
push edi
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 - 0x10]
xor ecx, ebp
call fcn.1005a0a8
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.100041e0
push 0x80004005
call fcn.100041e0
int3