Function at 0x419540
Capabilities:
Check os version
Terminate process

Disassembly:
mov eax, 0x1260
call fcn.00453f50
mov eax, dword [0x4946c0]
xor eax, esp
mov dword [esp + 0x125c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x126c]
push esi
xor esi, esi
mov eax, ebp
mov dword [esp + 0x18], esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419570
sub eax, edx
mov ebx, eax
lea eax, [ebx - 1]
cmp eax, 0x103
ja 0x41986b
cmp ebx, esi
push edi
jle 0x4195bb
lea ecx, [esp + 0x1168]
sub ebp, ecx
jmp 0x4195a0
lea edi, [esp + esi + 0x1168]
movsx edx, byte [edi + ebp]
push edx
call fcn.00454440
inc esi
add esp, 4
cmp esi, ebx
mov byte [edi], al
jl 0x4195a0
lea eax, [esp + 0xfd0]
push eax
mov byte [esp + ebx + 0x116c], 0
mov dword [esp + 0xfd4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4195ea
mov eax, 0x25e
jmp 0x419836
mov eax, dword [esp + 0xfe0]
cmp eax, 2
je 0x41960e
cmp eax, 1
je 0x419605
mov eax, 0x25f
jmp 0x419836
cmp eax, 2
jb 0x419817
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x41962d
mov eax, 0x25d
jmp 0x419836
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov edi, eax
call esi
push str.GetModuleBaseNameA
mov ebp, eax
push ebx
mov dword [esp + 0x34], ebp
call esi
mov dword [esp + 0x24], eax
test edi, edi
je 0x419856
test ebp, ebp
je 0x419856
test eax, eax
je 0x419856
lea ecx, [esp + 0x18]
push ecx
push 0x3e8
lea edx, [esp + 0x38]
push edx
call edi
test eax, eax
jne 0x419695
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x2bd
jmp 0x419836
mov eax, dword [esp + 0x18]
shr eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x41981b
mov edi, dword [esp + 0x127c]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4196d0
mov eax, dword [str.Unknown]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x476ba8]
mov dword [esp + 0x1064], eax
mov eax, dword [esp + edx*4 + 0x30]
push eax
push 0
push 0x410
mov dword [esp + 0x1074], ecx
call ebp
mov esi, eax
test esi, esi
je 0x41972d
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x41972d
mov ecx, dword [esp + 0x20]
push 0x104
lea eax, [esp + 0x1068]
push eax
push ecx
push esi
call dword [esp + 0x34]
push esi
call ebx
lea edx, [esp + 0x1064]
push edx
lea esi, [esp + 0x116c]
call fcn.00454c22
add esp, 4
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x419767
test cl, cl
je 0x419763
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x419767
add eax, 2
add esi, 2
test cl, cl
jne 0x419747
xor eax, eax
jmp 0x41976c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4197fd
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x1278], eax
je 0x419829
cmp dword [esp + 0xfd4], 5
jne 0x4197e8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x30]
push ecx
push 0
push 1
call ebp
mov esi, eax
test esi, esi
je 0x4197d2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x4197ba
call ebx
jmp 0x4197f9
call ebx
test edi, edi
jne 0x4197fd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x25a
jmp 0x419836
test edi, edi
jne 0x4197fd
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x25c
jmp 0x419836
mov edx, dword [esp + 0x14]
mov eax, dword [esp + edx*4 + 0x30]
push eax
call fcn.00419b50
add esp, 4
test edi, edi
je 0x41984f
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x28]
jb 0x4196d0
cmp dword [esp + 0x1c], 0
jne 0x419864
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x25b
jmp 0x419836
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x125c]
xor ecx, esp
call fcn.00450c28
add esp, 0x1260
ret
mov edx, dword [esp + 0x10]
push edx
jmp 0x41982e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x2bc
jmp 0x419836
mov eax, dword [esp + 0x10]
push eax
jmp 0x41982e
mov ecx, dword [esp + 0x1268]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x278
call fcn.00450c28
add esp, 0x1260
ret