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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x21c
mov edi, ecx
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x105
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403a9a
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x403ae9
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x403ac7
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403d5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____d_
push 0x434580
call fcn.0040b470
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040dac1
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
push str.updater.ini
push ebx
call fcn.00426d10
add esp, 8
test eax, eax
je 0x403b71
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403ba3
xor eax, eax
lea esi, [ebp - 0x220]
mov dword [esi], eax
push eax
push esi
push 1
push str.MozillaMaintenanceDescription
push ebx
call fcn.0040a720
add esp, 0x14
mov ebx, dword [esi]
test eax, eax
je 0x403bd5
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403de1
push str.updater.ini_file_does_not_contain_a_maintenance_service_description.
push 0x434580
call fcn.0040b470
add esp, 8
test ebx, ebx
jne 0x403d0a
jmp 0x403ad4
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403d9e
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 0x403ac7
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403e24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x403ac7
cmp byte [ebx], 0
je 0x403b31
xor eax, eax
xor edx, edx
dec edx
mov ecx, 0xfde9
push eax
push eax
push edx
mov esi, edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov ebx, eax
add ebx, eax
cmovb ebx, esi
push ebx
call fcn.0040cf57
add esp, 4
mov esi, eax
push ebx
mov ebx, dword [ebp - 0x228]
xor eax, eax
push eax
push esi
call fcn.0040f9d0
add esp, 0xc
push dword [ebp - 0x224]
push esi
xor eax, eax
dec eax
push eax
push ebx
xor eax, eax
push eax
mov eax, 0xfde9
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x403c9e
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x220]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [0x43478c]
mov edx, dword [edx + 4]
test eax, eax
je 0x403cda
cmp ecx, edx
jg 0x403e67
push str.The_service_description_was_updated_successfully.
push 0x434580
call fcn.0040b410
add esp, 8
jmp 0x403cfb
mov eax, dword [0x43478c]
mov ecx, dword [0x433a44]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_convert_description_to_wide_string_format.____d_
push 0x434580
call fcn.0040b470
add esp, 0xc
jmp 0x403d01
cmp ecx, edx
jg 0x403eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_change_service_config.____d_
push 0x434580
call fcn.0040b470
add esp, 0xc
mov esi, dword [ebp - 0x224]
push esi
call fcn.0040d268
add esp, 4
push ebx
call fcn.0040d268
add esp, 4
jmp 0x403ad4
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403a8c
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403a8c
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403abb
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403abb
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403b92
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403b92
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403b52
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403b52
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403bc4
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403bc4
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403c8a
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403c8a
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403cbf
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403cbf
push 0x43478c
call fcn.0040d3c7
add esp, 4
cmp dword [0x43478c], 0xffffffff
jne 0x403ce2
mov dword [0x434580], 0
push 0x4037c0
call fcn.0040d63c
add esp, 4
push 0x43478c
call fcn.0040d419
add esp, 4
jmp 0x403ce2