Function at 0x1014995
Capabilities:
Check if file exists
Create thread
Get common file path
Get file attributes
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1320
call fcn.01014a58
mov eax, dword [0x1054064]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1014a18
lea eax, [ebp - 0x1304]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x12a4]
push eax
push 4
lea eax, [ebp - 0x1298]
push eax
lea eax, [ebp - 0x1294]
push eax
lea eax, [ebp - 0x1304]
push eax
call dword [sym.imp.ntdll.dll_NtQueryLicenseValue]
test eax, eax
jl 0x1014a05
push edi
xor edi, edi
cmp dword [ebp - 0x1294], 4
jne 0x102a4f0
cmp dword [ebp - 0x1298], edi
je 0x102a4f0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001e8f
leave
ret
push ebx
push esi
lea eax, [ebp - 0x12b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ebx, 0x104
test eax, eax
je 0x102b20d
cmp dword [ebp - 0x12b8], edi
je 0x102ab9e
lea eax, [ebp - 0x12e8]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
test eax, eax
je 0x102b20d
push 1
push edi
push edi
mov dword [ebp - 0x12a0], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x128c], eax
cmp eax, edi
je 0x102ab8b
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 1
push 0x102b3c0
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x129c], eax
cmp eax, edi
je 0x102a615
lea eax, [ebp - 0x12a8]
push eax
push edi
push edi
push dword [ebp - 0x129c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x102a609
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x102a609
push dword [ebp - 0x12a8]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1288], eax
cmp eax, edi
jne 0x102a5c0
mov dword [ebp - 0x12a0], 1
jmp 0x102a609
lea eax, [ebp - 0x12a8]
push eax
push dword [ebp - 0x12a8]
push dword [ebp - 0x1288]
push dword [ebp - 0x129c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x102a5f9
mov eax, dword [ebp - 0x1288]
cmp dword [eax + 4], 4
je 0x102a5f9
mov dword [ebp - 0x12a0], 1
push dword [ebp - 0x1288]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x129c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x128c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x12a0], edi
je 0x102ab8b
push 1
push edi
push edi
mov dword [ebp - 0x129c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1288], eax
cmp eax, edi
je 0x102ab8b
push 1
push 0x102b3b0
push eax
call ebx
mov dword [ebp - 0x1290], eax
cmp eax, edi
je 0x102a6f6
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0x12a0]
push ecx
push edi
push edi
push eax
call ebx
test eax, eax
jne 0x102a6ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x102a6ea
push dword [ebp - 0x12a0]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x128c], eax
cmp eax, edi
jne 0x102a6aa
mov dword [ebp - 0x129c], 1
jmp 0x102a6ea
lea ecx, [ebp - 0x12a0]
push ecx
push dword [ebp - 0x12a0]
push eax
push dword [ebp - 0x1290]
call ebx
test eax, eax
je 0x102a6da
mov eax, dword [ebp - 0x128c]
cmp dword [eax + 4], 4
je 0x102a6da
mov dword [ebp - 0x129c], 1
push dword [ebp - 0x128c]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1290]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x1288]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x129c], edi
je 0x102ab8b
lea eax, [ebp - 0x1284]
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x102ab8b
lea eax, [ebp - 0x1284]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0xa64]
push eax
call fcn.010032c5
test eax, eax
jl 0x102ab8b
push 0x102b38c
push ebx
lea eax, [ebp - 0xa64]
push eax
call fcn.0100440b
test eax, eax
jl 0x102ab8b
lea eax, [ebp - 0xa64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102ab8b
lea eax, [ebp - 0x12b0]
push eax
lea eax, [ebp - 0xa64]
push eax
push edi
mov dword [ebp - 0x1290], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov dword [ebp - 0x128c], eax
cmp eax, edi
jbe 0x102ab8b
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x102a898
push ebx
push dword [ebp - 0x128c]
lea eax, [ebp - 0xa64]
push dword [ebp - 0x12b0]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x102a881
lea eax, [ebp - 0x12b4]
push eax
lea eax, [ebp - 0x12bc]
push eax
push 0x102b32c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102a881
cmp dword [ebp - 0x12b4], 4
jb 0x102a881
mov eax, dword [ebp - 0x12bc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x102b2d8
lea eax, [ebp - 0x1e4]
push 0x30
push eax
call fcn.01013d4d
add esp, 0x14
test eax, eax
jl 0x102a881
lea eax, [ebp - 0x12c4]
push eax
lea eax, [ebp - 0x12cc]
push eax
lea eax, [ebp - 0x1e4]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102a881
push dword [ebp - 0x12c4]
lea eax, [ebp - 0xa64]
push dword [ebp - 0x12cc]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x102a881
mov dword [ebp - 0x1290], 1
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1290], edi
je 0x102ab8b
lea eax, [ebp - 0x1284]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x654]
push eax
call fcn.010032c5
test eax, eax
jl 0x102ab8b
push 0x102b378
push ebx
lea eax, [ebp - 0x654]
push eax
call fcn.0100440b
test eax, eax
jl 0x102ab8b
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102ab8b
lea eax, [ebp - 0x12d4]
push eax
lea eax, [ebp - 0x654]
push eax
push edi
mov dword [ebp - 0x128c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov ebx, eax
cmp ebx, edi
jbe 0x102ab8b
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1288], eax
cmp eax, edi
je 0x102aa0c
push eax
push ebx
push dword [ebp - 0x12d4]
lea eax, [ebp - 0x654]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x102a9f0
lea eax, [ebp - 0x12dc]
push eax
lea eax, [ebp - 0x12e4]
push eax
push 0x102b32c
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102a9f0
cmp dword [ebp - 0x12dc], 4
jb 0x102a9f0
mov eax, dword [ebp - 0x12e4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x102b2d8
lea eax, [ebp - 0x64]
push 0x30
push eax
call fcn.01013d4d
add esp, 0x14
test eax, eax
jl 0x102a9f0
lea eax, [ebp - 0x12ec]
push eax
lea eax, [ebp - 0x12f4]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102a9f0
push dword [ebp - 0x12ec]
lea eax, [ebp - 0x654]
push dword [ebp - 0x12f4]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x102a9f0
mov dword [ebp - 0x128c], 1
push dword [ebp - 0x1288]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x128c], edi
je 0x102ab8b
lea eax, [ebp - 0x1284]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x85c]
push eax
call fcn.010032c5
test eax, eax
jl 0x102ab8b
push 0x102b360
push ebx
lea eax, [ebp - 0x85c]
push eax
call fcn.0100440b
test eax, eax
jl 0x102ab8b
lea eax, [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102ab8b
lea eax, [ebp - 0x12fc]
push eax
lea eax, [ebp - 0x85c]
push eax
push edi
mov dword [ebp - 0x128c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov ebx, eax
cmp ebx, edi
jbe 0x102ab8b
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1288], eax
cmp eax, edi
je 0x102ab86
push eax
push ebx
push dword [ebp - 0x12fc]
lea eax, [ebp - 0x85c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x102ab6e
lea eax, [ebp - 0x1308]
push eax
lea eax, [ebp - 0x1310]
push eax
push 0x102b32c
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102ab6e
cmp dword [ebp - 0x1308], 4
jb 0x102ab6e
mov eax, dword [ebp - 0x1310]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x102b2d8
lea eax, [ebp - 0xc4]
push 0x30
push eax
call fcn.01013d4d
add esp, 0x14
test eax, eax
jl 0x102ab6e
lea eax, [ebp - 0x1318]
push eax
lea eax, [ebp - 0x1320]
push eax
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102ab6e
push dword [ebp - 0x1318]
lea eax, [ebp - 0x85c]
push dword [ebp - 0x1320]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x102ab6e
mov dword [ebp - 0x128c], 1
push dword [ebp - 0x1288]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x128c], edi
je 0x102ab8b
xor esi, esi
inc esi
jmp 0x102ab8d
xor esi, esi
push dword [ebp - 0x12e8]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
jmp 0x102b200
push 1
push edi
push edi
mov dword [ebp - 0x128c], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1298], eax
cmp eax, edi
je 0x102b1fe
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 1
push 0x102b3c0
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0x1290], eax
cmp eax, edi
je 0x102ac7f
lea eax, [ebp - 0x129c]
push eax
push edi
push edi
push dword [ebp - 0x1290]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x102ac73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x102ac73
push dword [ebp - 0x129c]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1288], eax
cmp eax, edi
jne 0x102ac2a
mov dword [ebp - 0x128c], 1
jmp 0x102ac73
lea eax, [ebp - 0x129c]
push eax
push dword [ebp - 0x129c]
push dword [ebp - 0x1288]
push dword [ebp - 0x1290]
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x102ac63
mov eax, dword [ebp - 0x1288]
cmp dword [eax + 4], 4
je 0x102ac63
mov dword [ebp - 0x128c], 1
push dword [ebp - 0x1288]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1290]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x1298]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x128c], edi
je 0x102b1fe
push 1
push edi
push edi
mov dword [ebp - 0x1290], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1294], eax
cmp eax, edi
je 0x102b1fe
push 1
push 0x102b3b0
push eax
call ebx
mov dword [ebp - 0x1288], eax
cmp eax, edi
je 0x102ad60
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [ebp - 0x128c]
push ecx
push edi
push edi
push eax
call ebx
test eax, eax
jne 0x102ad54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x102ad54
push dword [ebp - 0x128c]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1298], eax
cmp eax, edi
jne 0x102ad14
mov dword [ebp - 0x1290], 1
jmp 0x102ad54
lea ecx, [ebp - 0x128c]
push ecx
push dword [ebp - 0x128c]
push eax
push dword [ebp - 0x1288]
call ebx
test eax, eax
je 0x102ad44
mov eax, dword [ebp - 0x1298]
cmp dword [eax + 4], 4
je 0x102ad44
mov dword [ebp - 0x1290], 1
push dword [ebp - 0x1298]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x1288]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x1294]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x1290], edi
je 0x102b1fe
lea eax, [ebp - 0x44c]
push eax
push edi
push edi
push 0x25
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x102b1fe
lea eax, [ebp - 0x44c]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0xe74]
push eax
call fcn.010032c5
test eax, eax
jl 0x102b1fe
push 0x102b38c
push ebx
lea eax, [ebp - 0xe74]
push eax
call fcn.0100440b
test eax, eax
jl 0x102b1fe
lea eax, [ebp - 0xe74]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102b1fe
lea eax, [ebp - 0x1290]
push eax
lea eax, [ebp - 0xe74]
push eax
push edi
mov dword [ebp - 0x1298], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov dword [ebp - 0x1294], eax
cmp eax, edi
jbe 0x102b1fe
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x102af02
push ebx
push dword [ebp - 0x1294]
lea eax, [ebp - 0xe74]
push dword [ebp - 0x1290]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x102aeeb
lea eax, [ebp - 0x12ac]
push eax
lea eax, [ebp - 0x1314]
push eax
push 0x102b32c
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102aeeb
cmp dword [ebp - 0x12ac], 4
jb 0x102aeeb
mov eax, dword [ebp - 0x1314]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x102b2d8
lea eax, [ebp - 0x184]
push 0x30
push eax
call fcn.01013d4d
add esp, 0x14
test eax, eax
jl 0x102aeeb
lea eax, [ebp - 0x12c0]
push eax
lea eax, [ebp - 0x12f0]
push eax
lea eax, [ebp - 0x184]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102aeeb
push dword [ebp - 0x12c0]
lea eax, [ebp - 0xe74]
push dword [ebp - 0x12f0]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x102aeeb
mov dword [ebp - 0x1298], 1
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1298], edi
je 0x102b1fe
lea eax, [ebp - 0x44c]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x107c]
push eax
call fcn.010032c5
test eax, eax
jl 0x102b1fe
push 0x102b378
push ebx
lea eax, [ebp - 0x107c]
push eax
call fcn.0100440b
test eax, eax
jl 0x102b1fe
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102b1fe
lea eax, [ebp - 0x1298]
push eax
lea eax, [ebp - 0x107c]
push eax
push edi
mov dword [ebp - 0x1294], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov ebx, eax
cmp ebx, edi
jbe 0x102b1fe
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1288], eax
cmp eax, edi
je 0x102b080
push eax
push ebx
push dword [ebp - 0x1298]
lea eax, [ebp - 0x107c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x102b064
lea eax, [ebp - 0x12c8]
push eax
lea eax, [ebp - 0x130c]
push eax
push 0x102b32c
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102b064
cmp dword [ebp - 0x12c8], 4
jb 0x102b064
mov eax, dword [ebp - 0x130c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x102b2d8
lea eax, [ebp - 0x244]
push 0x30
push eax
call fcn.01013d4d
add esp, 0x14
test eax, eax
jl 0x102b064
lea eax, [ebp - 0x12d0]
push eax
lea eax, [ebp - 0x12f8]
push eax
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102b064
push dword [ebp - 0x12d0]
lea eax, [ebp - 0x107c]
push dword [ebp - 0x12f8]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x102b064
mov dword [ebp - 0x1294], 1
push dword [ebp - 0x1288]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1294], edi
je 0x102b1fe
lea eax, [ebp - 0x44c]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0xc6c]
push eax
call fcn.010032c5
test eax, eax
jl 0x102b1fe
push 0x102b360
push ebx
lea eax, [ebp - 0xc6c]
push eax
call fcn.0100440b
test eax, eax
jl 0x102b1fe
lea eax, [ebp - 0xc6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102b1fe
lea eax, [ebp - 0x12d8]
push eax
lea eax, [ebp - 0xc6c]
push eax
push edi
mov dword [ebp - 0x1294], edi
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov ebx, eax
cmp ebx, edi
jbe 0x102b1fe
push ebx
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1288], eax
cmp eax, edi
je 0x102b2ce
push eax
push ebx
push dword [ebp - 0x12d8]
lea eax, [ebp - 0xc6c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoExW
test eax, eax
je 0x102b1e2
lea eax, [ebp - 0x131c]
push eax
lea eax, [ebp - 0x12e0]
push eax
push 0x102b32c
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102b1e2
cmp dword [ebp - 0x131c], 4
jb 0x102b1e2
mov eax, dword [ebp - 0x12e0]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push 0x102b2d8
lea eax, [ebp - 0x124]
push 0x30
push eax
call fcn.01013d4d
add esp, 0x14
test eax, eax
jl 0x102b1e2
lea eax, [ebp - 0x1300]
push eax
lea eax, [ebp - 0x12a4]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x1288]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x102b1e2
push dword [ebp - 0x1300]
lea eax, [ebp - 0xc6c]
push dword [ebp - 0x12a4]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
inc eax
pop ecx
inc eax
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x102b1e2
mov dword [ebp - 0x1294], 1
push dword [ebp - 0x1288]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x1294], edi
jne 0x102b2ce
xor esi, esi
cmp esi, edi
jne 0x102b2ce
mov ebx, 0x104
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x102b2ce
push 1
push 0x1acb
push edi
call sub.ntdll.dll_WinSqmIncrementDWORD
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1058064
call esi
test eax, eax
push ebx
lea eax, [ebp - 0x44c]
push eax
je 0x102b274
push 0xc804
push 0x1000000
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x102b2ce
lea eax, [ebp - 0x44c]
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x102b2ce
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x102b2ce
push 0x1000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
je 0x102b2ce
cmp eax, ebx
jne 0x102b292
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x102b2ce
lea eax, [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x102b2ce
lea eax, [ebp - 0x12a4]
push eax
push edi
push edi
push 0x10425e5
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x102b2c6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x102b2ce
push edi
push 0x1058064
call esi
pop esi
pop ebx
jmp 0x1014a04