Function at 0x413630
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54b858
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x60c9c8]
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 esi, dword [ebp + 8]
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea edx, [esi + 2]
xor ecx, ecx
push edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], eax
mov word [esi], cx
call fcn.00531fb0
push 0xc78
lea ebx, [esi + 0x208]
push 0
push ebx
call fcn.00531fb0
add esp, 0x18
push 1
push 0
lea ecx, [ebp - 0x28]
call fcn.0040c5b0
mov eax, dword [edi + 0x264]
mov eax, dword [eax + 0x10]
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x2c]
push edx
add edi, 0x264
push str.DisplayIcon
push str._uninstall_info_
mov ecx, edi
mov dword [ebp - 4], 0
call eax
test eax, eax
je 0x4137f1
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jle 0x4137f1
mov edx, dword [eax + 0x310]
test edx, edx
jne 0x4136f2
xor eax, eax
jmp 0x413710
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x3c], ecx
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413700
sub eax, dword [ebp - 0x3c]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00403290
mov ecx, dword [ebp - 0x28]
cmp dword [ecx - 0xc], 0
jl 0x413765
push str._SysFolder_
push ecx
call fcn.00533a71
mov ecx, dword [ebp - 0x28]
add esp, 8
test eax, eax
je 0x413741
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4137be
cmp dword [ecx - 0xc], 0
jl 0x413765
push str._InsFolder_
push ecx
call fcn.00533a71
mov ecx, dword [ebp - 0x28]
add esp, 8
test eax, eax
je 0x413765
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4137be
cmp dword [ecx - 4], 1
jle 0x41377a
mov edx, dword [ecx - 0xc]
push edx
lea ecx, [ebp - 0x28]
call fcn.00402d60
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x254]
cmp dword [eax - 4], 1
mov dword [ebp - 0x3c], ecx
jle 0x41379b
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 0x254]
call fcn.00402d60
mov ecx, dword [ebp - 0x3c]
mov esi, dword [esi + 0x254]
push ecx
push esi
push 0x55d250
push 0x104
push ebx
call fcn.00533b0b
mov esi, dword [ebp - 0x38]
add esp, 0x14
jmp 0x4137dc
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x28]
push edx
call fcn.0040da60
mov eax, dword [ebp - 0x28]
push eax
push 0x104
push ebx
call fcn.00532f33
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.00402e90
mov edx, dword [edi]
mov eax, dword [ebp - 0x2c]
mov edx, dword [edx + 0x14]
push eax
mov ecx, edi
call edx
cmp word [ebx], 0
jne 0x413868
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push eax
call fcn.0040e1b0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x254]
push ecx
push eax
lea ecx, [ebp - 0x28]
push 0x55d250
push ecx
mov byte [ebp - 4], 1
call fcn.004047a0
mov edx, dword [ebp - 0x28]
push edx
push 0x104
push ebx
call fcn.00532f33
add esp, 0x1c
lea ecx, [ebp - 0x28]
call fcn.00402e90
lea ecx, [ebp - 0x30]
call fcn.00402e90
mov eax, dword [ebp - 0x30]
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 0x413868
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push str.DisplayName
push str._uninstall_info_
mov ecx, edi
call edx
test eax, eax
je 0x4138c2
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jle 0x4138af
mov eax, dword [eax + 0x310]
push eax
lea ecx, [esi + 0x410]
push 0x104
push ecx
call fcn.00532f33
mov eax, dword [ebp - 0x2c]
add esp, 0xc
jmp 0x4138b8
xor edx, edx
mov word [esi + 0x410], dx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push str.UninstallName
push str._uninstall_info_
mov ecx, edi
call edx
test eax, eax
je 0x413912
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jle 0x413903
mov eax, dword [eax + 0x310]
push eax
push 0x104
push esi
call fcn.00532f33
mov eax, dword [ebp - 0x2c]
add esp, 0xc
jmp 0x413908
xor ecx, ecx
mov word [esi], cx
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
mov esi, dword [ebp - 0x34]
mov eax, dword [esi + 0x254]
cmp dword [eax - 4], 1
jle 0x413930
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esi + 0x254]
call fcn.00402d60
mov ebx, dword [esi + 0x254]
cmp dword [ebx - 4], 1
jle 0x41394b
mov edx, dword [ebx - 0xc]
push edx
lea ecx, [esi + 0x254]
call fcn.00402d60
mov esi, dword [esi + 0x254]
push ebx
push esi
mov esi, dword [ebp - 0x38]
push str.__suninst.exe___UninstallRemove__suninst.ini
lea eax, [esi + 0x618]
push 0x22c
push eax
call fcn.00533b0b
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
add esp, 0x14
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push str.Publisher
push str._uninstall_info_
mov ecx, edi
call edx
test eax, eax
je 0x4139be
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jle 0x4139b4
mov eax, dword [eax + 0x310]
push eax
lea ecx, [esi + 0xa70]
push 0x104
push ecx
call fcn.00532f33
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp word [esi + 0xa70], 0
lea ebx, [esi + 0xa70]
jne 0x413a74
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
and eax, 0x3ff
cmp eax, 1
jne 0x413c4e
mov dword [ebp - 0x44], 0x202a
mov dword [ebp - 0x30], 0x202c
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x413a11
push 0x80004005
call fcn.00402a80
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x30]
push ecx
push str.Canon_Inc.
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x3c]
push str._s_s_s
push eax
mov byte [ebp - 4], 2
call fcn.004047a0
mov esi, dword [ebp - 0x3c]
push esi
push 0x104
push ebx
call fcn.00532f33
lea eax, [esi - 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 0x413a71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x38]
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x55f79c
push str._uninstall_info_
mov ecx, edi
call edx
test eax, eax
je 0x413ac3
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0
jle 0x413ab9
mov eax, dword [eax + 0x310]
push eax
lea ecx, [esi + 0xc78]
push 0x104
push ecx
call fcn.00532f33
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
cmp word [esi + 0xc78], 0
lea edi, [esi + 0xc78]
jne 0x413c08
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00410af0
test eax, eax
je 0x413c08
push 0x55c8ac
lea ecx, [ebp - 0x30]
call fcn.00405b90
mov ebx, 3
mov byte [ebp - 4], bl
xor esi, esi
cmp dword [ebp - 0x24], esi
jbe 0x413baa
test esi, esi
je 0x413b33
push 1
push 0x55f798
lea ecx, [ebp - 0x30]
call fcn.00407c10
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413a07
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + esi*4 - 0x20]
push ecx
lea edx, [ebp - 0x34]
push 0x55f790
push edx
mov byte [ebp - 4], 4
call fcn.004047a0
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00407c10
lea ecx, [ebp - 0x34]
call fcn.00402e90
mov eax, dword [ebp - 0x34]
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 0x413baa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebx
jb 0x413b17
mov eax, dword [ebp - 0x30]
cmp dword [eax - 4], 1
jle 0x413bcb
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00402d60
mov eax, dword [ebp - 0x30]
push eax
push 0x104
push edi
call fcn.00532f33
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00402e90
mov eax, dword [ebp - 0x30]
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 0x413c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
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 0x413c2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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.00531f97
mov esp, ebp
pop ebp
ret 4
push str.Canon_Inc.
push 0x104
push ebx
call fcn.00532f33
add esp, 0xc
jmp 0x413a74