Function at 0x4026b0
Capabilities:
Check if file exists
Get file attributes
Modify service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x91c
mov eax, dword [0x43000c]
mov esi, ecx
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x105
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4027aa
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x402808
push edi
call fcn.004157a2
add esp, 4
add eax, 0xb
cmp eax, 0x103
ja 0x4027d9
push str.updater.ini
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4027d9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402857
lea ebx, [ebp - 0x924]
push 0
push ebx
push 1
push str.MozillaMaintenanceDescription
push edi
call fcn.0040aaf0
add esp, 0x14
test eax, eax
je 0x402886
mov byte [ebp - 0x924], 0
lea eax, [ebp - 0x474]
push 0x257
push ebx
push eax
call fcn.004155e0
add esp, 0xc
mov byte [ebp - 0x21d], 0
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x402a20
push str.updater.ini_file_does_not_contain_a_maintenance_service_description.
push 0x431588
call fcn.0040b8d0
add esp, 8
jmp 0x402842
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x402954
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____d_
jmp 0x402835
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x402998
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____d_
jmp 0x402835
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4029dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
push 0x431588
call fcn.0040b8d0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ce4a
add esp, 0x91c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x402a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x402835
lea edi, [ebp - 0x474]
push 0x257
push ebx
push edi
call fcn.004155e0
add esp, 0xc
mov byte [ebp - 0x21d], 0
push edi
call fcn.004154d0
add esp, 4
test eax, eax
je 0x402772
push 0x258
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x402922
lea eax, [ebp - 0x928]
mov dword [ebp - 0x928], ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov esi, eax
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x402aa8
test esi, esi
je 0x402aef
push str.The_service_description_was_updated_successfully.
push 0x431588
call fcn.0040b850
jmp 0x4027a2
mov eax, dword [0x43199c]
mov ecx, dword [0x430a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x402b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x402835
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x4027cb
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
jmp 0x4027cb
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x4027fa
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
jmp 0x4027fa
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x402829
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
jmp 0x402829
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x402793
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
jmp 0x402793
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x402878
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
jmp 0x402878
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x402906
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
test esi, esi
jne 0x40290e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_change_service_config.____d_
jmp 0x402835
push 0x43199c
call fcn.0040c696
add esp, 4
mov eax, dword [0x43199c]
cmp eax, 0xffffffff
jne 0x402943
mov dword [0x431588], 0
push 0x4021a0
call fcn.0040c8fc
add esp, 4
push 0x43199c
call fcn.0040c6e8
add esp, 4
jmp 0x402943