Function at 0x455ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x480
mov esi, esp
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esi + 0x478], eax
xor edi, edi
mov dword [esi + 0x40], edi
lea ebx, [esi + 0x270]
push 0x208
push 0xff
push ebx
call fcn.004d5a00
add esp, 0xc
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x455bd7
lea ebx, [esi + 0x60]
push 0x208
push 0xff
push ebx
call fcn.004d5a00
sub esp, 8
mov dword [esp + 0x10], ebx
movdqa xmm0, xmmword [section..rdata]
movdqu xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x455bd7
xor edi, edi
lea ecx, [esi + 0x44]
mov dword [ecx + 8], edi
mov dword [ecx + 4], edi
mov byte [ecx + 0xb], 1
mov dword [ecx], 0x5c
push ebx
push edi
call fcn.0041f270
mov ecx, dword [eax + 8]
mov dword [esi + 0x58], ecx
movq xmm0, qword [eax]
movq qword [esi + 0x50], xmm0
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
movzx ebx, byte [esi + 0x5b]
test bl, bl
jns 0x455b89
mov edi, dword [esi + 0x50]
mov ebx, dword [esi + 0x54]
jmp 0x455b8c
lea edi, [esi + 0x50]
lea eax, [esi + 0x270]
push eax
call fcn.004d00f2
add esp, 4
push 1
push ebx
push edi
push eax
lea eax, [esi + 0x270]
push eax
call fcn.0040ecb0
add esp, 0x14
mov ebx, eax
cmp byte [esi + 0x5b], 0
jns 0x455bc2
push dword [esi + 0x50]
call fcn.004cf0d6
add esp, 4
cmp byte [esi + 0x4f], 0
jns 0x455bd3
push dword [esi + 0x44]
call fcn.004cf0d6
add esp, 4
test bl, bl
jne 0x455c07
lea eax, [esi + 0x40]
mov ebx, 0xffffffe6
push eax
call fcn.00458580
add esp, 4
cmp eax, 2
jb 0x455d24
cmp eax, 3
je 0x455d1f
cmp eax, 4
jne 0x455c07
mov ebx, dword [esi + 0x40]
jmp 0x455d24
xor eax, eax
dec eax
lea ecx, [esi + 0x60]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [ecx], xmm0
call fcn.0043c1a0
xor eax, eax
push eax
push eax
call fcn.00417f40
add esp, 8
call fcn.004c9a80
mov edi, eax
lea ebx, [esi + 0x44]
xor eax, eax
dec eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 1
push ebx
call fcn.00533b80
add esp, 8
mov eax, str.service_update.log
push eax
call fcn.004d00f2
add esp, 4
mov ecx, ebx
mov ebx, edi
push eax
mov eax, str.service_update.log
push eax
lea edi, [esi + 0x270]
push edi
call fcn.00411970
push edi
call fcn.00456220
add esp, 4
mov ecx, edi
call fcn.004c5e70
lea edi, [esi + 0x34]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, ebx
push 0x579038
push edi
call fcn.00412860
push str.crashpad_handler
call fcn.004ea0d0
add esp, 4
movzx ecx, byte [edi + 0xb]
test cl, cl
jns 0x455cb4
mov ecx, dword [esi + 0x38]
cmp eax, ecx
jne 0x455d3d
lea ecx, [esi + 0x34]
push eax
push str.crashpad_handler
push 0xffffffffffffffff
push 0
call fcn.004c60f0
test eax, eax
jne 0x455d3d
lea edi, [esi + 0x270]
mov ecx, edi
call fcn.0041a390
push 0x583960
push 0x579030
push edi
push ebx
call fcn.00468b20
add esp, 0x10
mov ebx, eax
mov ecx, edi
call fcn.004c5e70
cmp byte [esi + 0x3f], 0
jns 0x455d0d
push dword [esi + 0x34]
call fcn.004cf0d6
add esp, 4
lea ecx, [esi + 0x44]
call fcn.004c5e70
lea ecx, [esi + 0x60]
call fcn.00434e10
jmp 0x455d24
mov ebx, 0xffffff38
mov ecx, dword [esi + 0x478]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
call fcn.004580d0
mov ecx, ebx
push str.run_as_service
call fcn.004c9a90
test al, al
je 0x455d9b
xor eax, eax
dec eax
mov dword [esi + 0x270], eax
mov dword [esi + 0x274], eax
mov dword [esi + 0x278], eax
lea edi, [esi + 0x270]
mov ecx, edi
call fcn.0041a390
push edi
call fcn.00456830
add esp, 4
push edi
call fcn.00456900
add esp, 4
call fcn.00456a30
push ebx
call fcn.00456ac0
add esp, 4
mov ecx, edi
call fcn.004c5e70
mov dword [esi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00412df0
add esp, 4
mov dword [esi + 0xc], eax
lea edi, [esi + 0x28]
push edi
call fcn.00402fc0
add esp, 4
mov ecx, edi
call fcn.0042d3f0
mov edi, eax
xor eax, eax
lea ecx, [esi + 0x270]
push 0x65
push str.LogStart
push eax
call fcn.005019c0
lea ebx, [esi + 0x2ac]
mov ecx, ebx
push 0x579082
push str.STARTING_SERVICE_UPDATE
call fcn.004fc970
mov ecx, ebx
push 0x57908a
push str.._PID:
call fcn.004fc970
lea ecx, [esi + 0x278]
mov dword [esi + 0x24], edi
push edi
call fcn.004fee80
mov edi, eax
lea ecx, [eax + 0x34]
push 0x579099
push str.._PARENT_PID:
call fcn.004fc970
mov ecx, edi
push dword [esi + 0xc]
call fcn.004fee80
mov dword [esi + 8], eax
lea ecx, [eax + 0x34]
push 0x5790a7
push str.._ARGUMENTS:
call fcn.004fc970
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], eax
push dword [ebp + 0x10]
call fcn.004d00f2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x45620f
mov ebx, eax
cmp eax, 5
jb 0x455e94
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.004cf0a6
add esp, 4
lea ecx, [esi + 0x50]
mov dword [ecx], eax
or edi, 0x80000000
mov dword [ecx + 8], edi
mov dword [esi + 4], ecx
mov dword [ecx + 4], ebx
jmp 0x455ea1
lea eax, [esi + 0x50]
mov byte [eax + 0xb], bl
mov dword [esi + 4], eax
test ebx, ebx
je 0x455eb6
mov ecx, ebx
add ecx, ebx
push ecx
push dword [ebp + 0x10]
push eax
mov edi, eax
call fcn.004d4f00
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
lea ebx, [esi + 0x50]
mov ecx, dword [esi + 8]
push ebx
call fcn.004fefd0
mov eax, dword [esi + 4]
cmp byte [eax + 0xb], 0
jns 0x455edc
push dword [esi + 0x50]
call fcn.004cf0d6
add esp, 4
lea ecx, [esi + 0x270]
call fcn.00439b10
lea ecx, [esi + 0x270]
push 0x67
push str.LogStart
push 0
call fcn.005019c0
lea edi, [esi + 0x2ac]
mov ecx, edi
push 0x5790c0
push str.Service_update_version:
call fcn.004fc970
push ebx
call fcn.00503650
add esp, 4
movzx eax, byte [esi + 0x5b]
test al, al
jns 0x455f29
mov ebx, dword [esi + 0x50]
mov eax, dword [esi + 0x54]
add eax, ebx
mov ecx, edi
push eax
push ebx
call fcn.004fc970
cmp byte [esi + 0x5b], 0
jns 0x455f45
push dword [esi + 0x50]
call fcn.004cf0d6
add esp, 4
lea ecx, [esi + 0x270]
call fcn.00439b10
lea ecx, [esi + 0x28]
call fcn.004bc770
lea ebx, [esi + 0x50]
xor edi, edi
dec edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov ecx, ebx
push 0
call fcn.00422950
mov ecx, ebx
call fcn.005759c0
test al, al
je 0x456055
mov dword [esi + 0x270], edi
mov dword [esi + 0x274], edi
mov dword [esi + 0x278], edi
call fcn.00529110
mov ecx, eax
mov dword [esi + 8], esp
sub esp, 0x14
mov edi, esp
xor ebx, ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov edx, dword [0x5c7410]
mov eax, dword [0x5c740c]
sub edx, eax
je 0x456037
mov dword [esi + 0x18], eax
mov dword [esi + 4], ecx
mov eax, edx
sar eax, 2
imul ecx, eax, 0xaaaaaaab
mov eax, ecx
mov dword [esi + 0x10], ecx
cmp ecx, 0x15555556
jae 0x456205
push edx
mov dword [esi + 0x1c], edx
call fcn.004cf0a6
mov edx, dword [esi + 0x1c]
add esp, 4
mov ecx, eax
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov dword [edi + 0x10], eax
test edx, edx
jle 0x456031
mov eax, edx
mov dword [esi + 0x10], ecx
mov ecx, edx
mov edx, 0xaaaaaaab
mul edx
shr edx, 3
mov dword [esi + 0x14], edx
push ecx
push dword [esi + 0x18]
push dword [esi + 0x10]
call fcn.004d4f00
mov ecx, dword [esi + 0x10]
add esp, 0xc
mov eax, dword [esi + 0x14]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 4]
lea eax, [esi + 0x270]
mov dword [edi], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 4], eax
call fcn.00529230
mov esp, dword [esi + 8]
sub ebx, dword [esi + 0x270]
jmp 0x4560b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edi, [esi + 0x28]
push edi
call fcn.00501dd0
add esp, 8
lea ebx, [esi + 0x270]
mov ecx, ebx
push edi
push 0xb1
push str.wWinMain
push 1
call fcn.00501b30
lea ecx, [esi + 0x2ac]
push 0x579061
push str.Failed_to_initialize_COM
call fcn.004fc970
mov ecx, ebx
call fcn.00501b70
cmp byte [esi + 0x33], 0
jns 0x4560af
push dword [esi + 0x28]
call fcn.004cf0d6
add esp, 4
mov ebx, 0xfffffffe
lea ecx, [esi + 0x50]
call fcn.0043d460
xor eax, eax
lea ecx, [esi + 0x270]
push 0x6f
push str.LogExit
push eax
call fcn.005019c0
lea edi, [esi + 0x2ac]
mov ecx, edi
push 0x5790dc
push str.EXIT_SERVICE_UPDATE
call fcn.004fc970
mov ecx, edi
push 0x57908a
push str.._PID:
call fcn.004fc970
lea ecx, [esi + 0x278]
push dword [esi + 0x24]
call fcn.004fee80
mov edi, eax
lea ecx, [eax + 0x34]
push 0x579099
push str.._PARENT_PID:
call fcn.004fc970
mov ecx, edi
push dword [esi + 0xc]
call fcn.004fee80
mov dword [esi + 4], eax
lea ecx, [eax + 0x34]
push 0x5790a7
push str.._ARGUMENTS:
call fcn.004fc970
lea eax, [esi + 0x50]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [esi + 8], eax
mov dword [eax + 8], ecx
push dword [ebp + 0x10]
call fcn.004d00f2
add esp, 4
cmp eax, 0x7ffffff0
jae 0x45620f
mov ecx, eax
cmp eax, 5
mov dword [esi + 0xc], eax
jb 0x456190
lea edi, [ecx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.004cf0a6
mov ecx, dword [esi + 0xc]
add esp, 4
mov dword [esi + 0x50], eax
or edi, 0x80000000
mov dword [esi + 0x58], edi
mov dword [esi + 0x54], ecx
jmp 0x45619d
lea eax, [esi + 0x50]
mov byte [eax + 0xb], cl
mov dword [esi + 8], eax
test ecx, ecx
je 0x4561b3
add ecx, ecx
push ecx
push dword [ebp + 0x10]
push eax
mov edi, eax
call fcn.004d4f00
mov eax, edi
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov word [eax + ecx*2], 0
lea eax, [esi + 0x50]
mov ecx, dword [esi + 4]
push eax
call fcn.004fefd0
mov edi, eax
lea ecx, [eax + 0x34]
push 0x5790ea
push str.._EXIT_CODE:
call fcn.004fc970
mov ecx, edi
push ebx
call fcn.004ff050
mov eax, dword [esi + 8]
cmp byte [eax + 0xb], 0
jns 0x4561f5
push dword [esi + 0x50]
call fcn.004cf0d6
add esp, 4
lea ecx, [esi + 0x270]
call fcn.00439b10
jmp 0x455cfc
add edi, 8
mov ecx, edi
call fcn.004ff350
lea ecx, [esi + 0x50]
call fcn.004fc800
int3