Function at 0x4019c0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags
Get process heap force flags
Identify system language via api
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x220]
sub esp, 0x29c
mov dword [ebp - 0x27c], eax
mov dword [esp], str.msi.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
xor edx, edx
sub esp, 4
mov word [ebp - 0x220], dx
mov esi, eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
test eax, eax
jne 0x401a1c
test byte [section..data], 2
jne 0x401c16
xor edi, edi
lea eax, [ebp - 0x274]
mov dword [esp], ebx
mov word [ebp - 0x270], di
lea edi, [ebp - 0x270]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x274], 0x28
call sub.msi.dll_MsiGetFileVersionW
sub esp, 0x14
test eax, eax
je 0x401a6f
test byte [section..data], 2
jne 0x401be9
lea eax, [ebp - 0x278]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0xa
mov dword [esp], esi
mov ebx, dword fs:[0x18]
call sub.user32.dll_LoadStringW
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0x10
mov dword [ebp - 0x274], eax
lea eax, [eax + eax + 2]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x280], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x274]
sub esp, 0xc
mov dword [esp + 4], 0
lea eax, [eax + eax + 0x52]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edx
mov ebx, eax
sub esp, 0xc
mov eax, dword [ebp - 0x278]
test ebx, ebx
je 0x401b99
test eax, eax
je 0x401b99
mov word [eax], 0
mov eax, dword [ebp - 0x274]
mov dword [esp], esi
xor esi, esi
add eax, 1
mov dword [esp + 4], 0xa
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x278]
mov dword [esp + 8], eax
call sub.user32.dll_LoadStringW
mov eax, dword [ebp - 0x278]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x274]
mov dword [esp + 0xc], edi
add eax, 0x29
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00401230
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor ecx, ecx
xor edx, edx
mov dword [esp + 4], ebx
movzx eax, ax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp], esi
call sub.msi.dll_MsiMessageBoxW
mov eax, dword [ebp - 0x278]
sub esp, 0x18
mov dword [esp + 8], eax
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x27c]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.MsiGetFileVersion_failed_with__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401930
jmp 0x401a6f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.GetModuleFileName_failed:__ld_n
mov dword [esp + 8], str.ShowUsage
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x406000
mov dword [esp], 1
call fcn.00401930
jmp 0x401a1c