Function at 0x410c50
Capabilities:
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5457e7
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5ec938]
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 ebx, dword [ebp + 8]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea edx, [ebx + 2]
xor ecx, ecx
push edx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x230], eax
mov word [ebx], cx
call fcn.0052c850
push 0xc78
lea edi, [ebx + 0x208]
push 0
push edi
call fcn.0052c850
add esp, 0x18
push 1
push 0
lea ecx, [ebp - 0x238]
call fcn.0040a0a0
mov eax, dword [esi + 0x65c]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x230]
push edx
add esi, 0x65c
push str.DisplayIcon
push str._uninstall_info_
mov ecx, esi
mov dword [ebp - 4], 0
call eax
test eax, eax
je 0x410e81
mov ecx, dword [ebp - 0x230]
cmp dword [ecx], 0
jle 0x410e81
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.0052c850
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [ebp - 0x230]
mov edx, dword [edx + 0x290]
test edx, edx
jne 0x410d63
xor eax, eax
jmp 0x410d83
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x244], ecx
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410d70
sub eax, dword [ebp - 0x244]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x238]
call fcn.004026f0
lea edx, [ebp - 0x218]
push edx
push str._SysFolder_
lea ecx, [ebp - 0x238]
call fcn.0040a2e0
test eax, eax
je 0x410dc5
mov eax, dword [ebp - 0x238]
push eax
push 0x104
push edi
call fcn.0052cd4a
add esp, 0xc
jmp 0x410e66
mov ebx, dword [ebp - 0x23c]
mov eax, dword [ebx + 0x64c]
push eax
push str._InsFolder_
lea ecx, [ebp - 0x238]
call fcn.0040a2e0
test eax, eax
je 0x410dfd
mov ecx, dword [ebp - 0x238]
push ecx
push 0x104
push edi
call fcn.0052cd4a
add esp, 0xc
jmp 0x410e60
mov eax, dword [ebp - 0x238]
cmp dword [eax - 4], 1
jle 0x410e1e
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x238]
call fcn.004021c0
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x244], eax
mov eax, dword [ebx + 0x64c]
cmp dword [eax - 4], 1
jle 0x410e3f
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebx + 0x64c]
call fcn.004021c0
mov ecx, dword [ebp - 0x244]
mov ebx, dword [ebx + 0x64c]
push ecx
push ebx
push str._s_s
push 0x104
push edi
call fcn.0052d99b
add esp, 0x14
mov ebx, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
call fcn.004022d0
mov edx, dword [esi]
mov eax, dword [ebp - 0x230]
mov edx, dword [edx + 0x14]
push eax
mov ecx, esi
call edx
cmp word [edi], 0
jne 0x410f17
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x234]
push eax
call fcn.0040b760
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x64c]
push ecx
push eax
lea ecx, [ebp - 0x238]
push str._s_s
push ecx
mov byte [ebp - 4], 1
call fcn.00403bf0
mov edx, dword [ebp - 0x238]
push edx
push 0x104
push edi
call fcn.0052cd4a
add esp, 0x1c
lea ecx, [ebp - 0x238]
call fcn.004022d0
lea ecx, [ebp - 0x234]
call fcn.004022d0
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
push ecx
push str.DisplayName
push str._uninstall_info_
mov ecx, esi
call edx
test eax, eax
je 0x410f7d
mov eax, dword [ebp - 0x230]
cmp dword [eax], 0
jle 0x410f6a
mov eax, dword [eax + 0x290]
push eax
lea ecx, [ebx + 0x410]
push 0x104
push ecx
call fcn.0052cd4a
mov eax, dword [ebp - 0x230]
add esp, 0xc
jmp 0x410f73
xor edx, edx
mov word [ebx + 0x410], dx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
push ecx
push str.UninstallName
push str._uninstall_info_
mov ecx, esi
call edx
test eax, eax
je 0x410fd9
mov eax, dword [ebp - 0x230]
cmp dword [eax], 0
jle 0x410fca
mov eax, dword [eax + 0x290]
push eax
push 0x104
push ebx
call fcn.0052cd4a
mov eax, dword [ebp - 0x230]
add esp, 0xc
jmp 0x410fcf
xor ecx, ecx
mov word [ebx], cx
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edi, dword [ebp - 0x23c]
mov eax, dword [edi + 0x64c]
cmp dword [eax - 4], 1
jle 0x410ffa
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [edi + 0x64c]
call fcn.004021c0
mov ebx, dword [edi + 0x64c]
cmp dword [ebx - 4], 1
jle 0x411015
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [edi + 0x64c]
call fcn.004021c0
mov edi, dword [edi + 0x64c]
push ebx
push edi
mov edi, dword [ebp - 0x240]
push str.__suninst.exe___UninstallRemove__suninst.ini
lea eax, [edi + 0x618]
push 0x22c
push eax
call fcn.0052d99b
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
add esp, 0x14
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
push ecx
push str.Publisher
push str._uninstall_info_
mov ecx, esi
call edx
test eax, eax
je 0x411097
mov eax, dword [ebp - 0x230]
cmp dword [eax], 0
jle 0x41108d
mov eax, dword [eax + 0x290]
push eax
lea ecx, [edi + 0xa70]
push 0x104
push ecx
call fcn.0052cd4a
mov eax, dword [ebp - 0x230]
add esp, 0xc
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
cmp word [edi + 0xa70], 0
lea ebx, [edi + 0xa70]
jne 0x411165
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
and eax, 0x3ff
cmp eax, 1
jne 0x411388
mov dword [ebp - 0x24c], 0x202a
mov dword [ebp - 0x234], 0x202c
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4110f0
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
lea ecx, [ebp - 0x234]
push ecx
push str.Canon_Inc.
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x244]
push str._s_s_s
push eax
mov byte [ebp - 4], 2
call fcn.00403bf0
mov edi, dword [ebp - 0x244]
push edi
push 0x104
push ebx
call fcn.0052cd4a
lea eax, [edi - 0x10]
add esp, 0x20
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41115f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x240]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
push ecx
push 0x558ac4
push str._uninstall_info_
mov ecx, esi
call edx
test eax, eax
je 0x4111c0
mov eax, dword [ebp - 0x230]
cmp dword [eax], 0
jle 0x4111b6
mov eax, dword [eax + 0x290]
push eax
lea ecx, [edi + 0xc78]
push 0x104
push ecx
call fcn.0052cd4a
mov eax, dword [ebp - 0x230]
add esp, 0xc
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
add edi, 0xc78
xor esi, esi
cmp word [edi], si
jne 0x41133b
xor eax, eax
lea ecx, [ebp - 0x22c]
push ecx
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
call fcn.0040e130
test eax, eax
je 0x41133b
push 0x556794
lea ecx, [ebp - 0x234]
call fcn.00404fe0
mov ebx, 3
mov byte [ebp - 4], bl
cmp dword [ebp - 0x22c], esi
jbe 0x4112d1
test esi, esi
je 0x411245
push 1
push 0x558ac0
lea ecx, [ebp - 0x234]
call fcn.00406390
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x4110e6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp + esi*4 - 0x228]
push ecx
lea edx, [ebp - 0x23c]
push 0x558ab8
push edx
mov byte [ebp - 4], 4
call fcn.00403bf0
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00406390
lea ecx, [ebp - 0x23c]
call fcn.004022d0
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4112d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebx
jb 0x411223
mov eax, dword [ebp - 0x234]
cmp dword [eax - 4], 1
jle 0x4112fb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x234]
call fcn.004021c0
mov eax, dword [ebp - 0x234]
push eax
push 0x104
push edi
call fcn.0052cd4a
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004022d0
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41133b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411364
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
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.0052c2ec
mov esp, ebp
pop ebp
ret 4
push str.Canon_Inc.
push 0x104
push ebx
call fcn.0052cd4a
add esp, 0xc
jmp 0x411165