Function at 0x40cc20
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4574b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x46bd84]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x94]
push eax
lea ecx, [esp + 0x24]
call fcn.00401ea0
mov ecx, eax
mov dword [esp + 0x8c], 0
call fcn.00421480
mov esi, eax
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x24], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cc9f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ccb9
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
push ecx
push 0x470130
mov dword [esp + 0x98], 1
call fcn.0040c2e0
mov byte [esp + 0x8c], 2
test esi, esi
je 0x40ce9f
push str.CmdLine
push str.Product
lea edx, [esp + 0x28]
push edi
push edx
call fcn.00420b30
add esp, 0x10
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 3
call fcn.0040f0a0
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Languages
push str.Product
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00420b30
add esp, 0x10
mov bl, 4
mov byte [esp + 0x8c], bl
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], 0
je 0x40ce6e
call fcn.0042d67b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40cd90
push 0x80004005
call fcn.00401f60
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x8c], 5
mov eax, dword [0x4700f8]
test eax, eax
jne 0x40cdb6
call fcn.00402db0
movzx ecx, ax
push ecx
lea edx, [esp + 0x20]
push 0x45e5c4
push edx
call fcn.0040f030
mov esi, dword [esp + 0x28]
add esp, 0xc
test esi, esi
je 0x40ce4b
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x40ce4b
push esi
push eax
call fcn.0043e12c
add esp, 8
test eax, eax
je 0x40ce4b
sub eax, dword [esp + 0x14]
sar eax, 1
cmp eax, 0xffffffff
je 0x40ce4b
push str..mst
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040dce0
add esp, 0xc
lea ecx, [esp + 0x20]
lea edi, [esp + 0x10]
mov byte [esp + 0x8c], 6
call fcn.0040d330
mov byte [esp + 0x8c], 5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ce4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ce6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d102
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40d102
lea ecx, [esp + 0x30]
call fcn.004301af
lea ecx, [esp + 0x60]
push ecx
mov byte [esp + 0x90], 7
call fcn.004219d0
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x64]
mov byte [esp + 0x90], 8
call fcn.0042c550
mov byte [esp + 0x90], 7
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], vtable.CDataINI.0
call fcn.0042f7a1
push str.TRGB
lea ecx, [esp + 0x24]
call fcn.00401ea0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x9c], 9
call fcn.00418b80
add esp, 0x10
mov bl, 0xb
mov byte [esp + 0x8c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cf44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0042bf80
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40d047
mov esi, dword [0x4701d4]
call fcn.0040f520
push 0xd
push str.internalError
mov ecx, 0x4701f0
call fcn.00401d70
mov eax, dword [0x4701e0]
test eax, eax
je 0x40cf9d
mov ecx, dword [0x4701d8]
push ecx
push str.Error:_Cannot_map_MSI_Feature_name
push 1
push eax
call fcn.00417320
add esp, 0x10
mov byte [esp + 0x8c], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cfc5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 2
call fcn.00430401
mov byte [esp + 0x8c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cffe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d029
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x80
ret 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0x3a
test eax, eax
jl 0x40d329
cmp eax, dword [esp + 0x38]
jge 0x40d329
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x28]
lea esi, [ecx + eax*4]
push edx
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x34]
call fcn.0041f530
mov byte [esp + 0x94], 0xc
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push str.ADDLOCAL__s_
push edx
call fcn.0040f030
mov byte [esp + 0xa0], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d0f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 2
call fcn.00430401
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
je 0x40d11c
lea ebx, [esp + 0x10]
call fcn.0040e030
mov ebx, eax
call fcn.0040e0b0
push str._REBOOT_ReallySuppress_
lea ecx, [esp + 0x2c]
call fcn.00401ea0
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x34]
mov bl, 0xd
push eax
mov byte [esp + 0x98], bl
call fcn.00401540
add esp, 0xc
mov byte [esp + 0x8c], 0xe
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401630
mov byte [esp + 0x8c], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d185
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040d420
mov esi, eax
mov eax, dword [0x4701e0]
test eax, eax
je 0x40d219
push str.Begin_MSI_installation
push 1
push eax
call fcn.00417320
add esp, 0xc
cmp dword [esp + 0x24], 0
mov eax, str.MSI_file
jne 0x40d1de
mov eax, str.ProductCode
mov ebx, dword [esp + 0x94]
mov ecx, dword [0x4701e0]
push ebx
push eax
push str._t_t_t_t____s:__s
push 0
push ecx
call fcn.00417320
mov edx, dword [esp + 0x24]
mov eax, dword [0x4701e0]
add esp, 0x14
push edx
push str._t_t_t_t___Command_Line:__s
push 0
push eax
call fcn.00417320
add esp, 0x10
jmp 0x40d220
mov ebx, dword [esp + 0x94]
lea ecx, [esp + 0x44]
push ecx
call fcn.00417b10
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x90], 0xf
call fcn.00417c50
mov edi, dword [0x4701d4]
call fcn.004025d0
cmp dword [esp + 0x24], 0
je 0x40d25b
mov eax, dword [esp + 0x10]
push eax
push ebx
call sub.msi.dll_MsiOpenDatabaseW
jmp 0x40d26a
mov ecx, dword [esp + 0x10]
push ecx
push 5
push 0
push ebx
call sub.msi.dll_MsiGetFileVersionA
mov edi, eax
push edi
push 0x45e5c4
push 0x4701f8
call fcn.0040f030
add esp, 0xc
push 0
push 0
push 0
call sub.msi.dll_MsiGetComponentPathW
test esi, esi
je 0x40d29c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4701e0]
test eax, eax
je 0x40d2b6
push edi
push str.MSI_installation_finished_with_exit_code__d
push 1
push eax
call fcn.00417320
add esp, 0x10
mov byte [esp + 0x8c], 2
lea esi, [esp + 0x44]
mov dword [esp + 0x44], vtable.CMap_wchar_t__wchar_t__unsigned_long_int__unsigned_long_int_.0
call fcn.00418250
mov byte [esp + 0x8c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d2f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x8c], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d322
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x40d02c
call fcn.0042d54b
int3