Function at 0x412950
Capabilities:
Check if file exists
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d0a1
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.StepUnRegisterService
push 0x48dac0
mov dword [ebp - 0x1a4], 0
call fcn.00417ab0
add esp, 8
mov dword [ebp - 0x1a4], 0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x412d16
lea eax, [ebp - 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x412d16
cmp dword [ebp - 0x1a4], 0
je 0x412d16
push 0x14
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x476164
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407590
lea esi, [edi + 0x2a0]
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x412a26
mov edx, dword [esi]
mov ecx, edx
mov byte [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x1a4], 1
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a50
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407590
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004196a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 0
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x412ac7
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412abd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413064
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x412b1c
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412b12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413069
push edx
push ecx
call fcn.0042297a
add esp, 8
test edi, edi
je 0x413043
push pe_nt_image_headers32
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.00424870
add esp, 0xc
mov dword [ebp - 0x1a0], 0x114
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, dword [ebp - 0x198]
mov edi, dword [ebp - 0x19c]
push ebx
push edi
push str.StepUnRegisterService_64exe__uiMajor__d___uiMinor__d_
push 0x48dac0
call fcn.00417ab0
add esp, 0x10
cmp edi, 6
jae 0x412b88
cmp edi, 5
jne 0x413043
cmp ebx, 1
jb 0x413043
push 0x14
xor eax, eax
mov dword [ebp - 0x30], 0
push str.DesktopService64.exe
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407590
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 8
jb 0x412bba
mov esi, dword [esi]
lea eax, [ebp - 0x40]
mov edx, esi
push eax
lea ecx, [ebp - 0x70]
call fcn.0040f860
add esp, 4
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 8
jb 0x412bd9
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412bf2
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407590
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x412c49
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41306e
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x412c9b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413073
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, 0x476288
cmovae ecx, dword [ebp - 0x28]
push ecx
push 1
push 0xea60
call fcn.00409920
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0x476190
push 0x48dac0
call fcn.00417de0
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 8
jb 0x413043
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413039
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413078
jmp 0x413039
push 0x12
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x4761d4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407590
lea esi, [edi + 0x2a0]
mov dword [ebp - 4], 7
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x412d50
mov edx, dword [esi]
mov ecx, edx
mov byte [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x1a4], 2
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412d77
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407590
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004196a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], 7
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x412dee
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412de4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41307d
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x412e43
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412e39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413082
push edx
push ecx
call fcn.0042297a
add esp, 8
test edi, edi
je 0x413043
push pe_nt_image_headers32
lea eax, [ebp - 0x19c]
push 0
push eax
call fcn.00424870
add esp, 0xc
mov dword [ebp - 0x1a0], 0x114
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, dword [ebp - 0x198]
mov edi, dword [ebp - 0x19c]
push ebx
push edi
push str.StepUnRegisterService_exe__uiMajor__d___uiMinor__d_
push 0x48dac0
call fcn.00417ab0
add esp, 0x10
cmp edi, 6
jae 0x412eaf
cmp edi, 5
jne 0x413043
cmp ebx, 1
jb 0x413043
push 0x12
xor eax, eax
mov dword [ebp - 0x30], 0
push str.DesktopService.exe
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407590
mov dword [ebp - 4], 9
cmp dword [esi + 0x14], 8
jb 0x412ee1
mov esi, dword [esi]
lea eax, [ebp - 0x40]
mov edx, esi
push eax
lea ecx, [ebp - 0x88]
call fcn.0040f860
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0xa
cmp dword [edx + 0x14], 8
jb 0x412f03
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412f20
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00407590
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x412f7a
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412f70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413087
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov byte [ebp - 4], 0xd
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x412fcf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412fc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41308c
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
mov edx, str._uninstall
cmovae ecx, dword [ebp - 0x58]
push ecx
push 1
push 0xea60
call fcn.00409920
add esp, 0xc
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
push str.StepUnRegisterService::_path___s
push 0x48dac0
call fcn.00417de0
mov edx, dword [ebp - 0x44]
add esp, 0xc
cmp edx, 8
jb 0x413043
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413039
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413091
push edx
push ecx
call fcn.0042297a
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422308
mov esp, ebp
pop ebp
ret
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
int3