Function at 0x40c1b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x492984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
xor eax, eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40c20e
mov eax, 0x25c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20c]
cmp eax, 2
je 0x40c244
cmp eax, 1
je 0x40c231
mov eax, 0x25d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
mov eax, 0x25e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push str.NTDLL.DLL
mov edi, 0x4000
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x40c42b
push str.NtQuerySystemInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x230], esi
test esi, esi
je 0x40c2d8
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x220], ebx
test ebx, ebx
je 0x40c2d1
lea eax, [ebp - 0x238]
push eax
push edi
push ebx
push 5
call esi
mov esi, eax
test esi, esi
je 0x40c2e9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xc0000004
jne 0x40c2d1
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, dword [ebp - 0x230]
mov ebx, eax
mov dword [ebp - 0x220], ebx
test ebx, ebx
jne 0x40c292
mov esi, 0x260
jmp 0x40c2e9
mov ebx, dword [ebp - 0x238]
mov esi, 0x25f
mov dword [ebp - 0x220], ebx
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
jne 0x40c430
mov edi, dword [ebp + 0xc]
mov esi, ebx
mov ebx, dword [ebp - 0x23c]
jmp 0x40c310
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40c39a
push 0
push 0
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40c39a
mov dword [ebp - 0x228], 1
cmp edi, 1
jne 0x40c3a7
push dword [esi + 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40c397
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40c386
mov dword [ebp - 0x224], 1
jmp 0x40c390
mov dword [ebp - 0x22c], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x40c3a7
add esi, eax
jmp 0x40c310
mov ebx, dword [ebp - 0x220]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x228]
test eax, eax
jne 0x40c3d4
pop edi
pop esi
mov eax, 0x25b
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x40c418
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x40c3f9
pop edi
pop esi
mov eax, 0x259
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x22c], 1
jne 0x40c418
pop edi
pop esi
mov eax, 0x25a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004580b8
mov esp, ebp
pop ebp
ret
mov esi, 0x25e
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004580b8
mov esp, ebp
pop ebp
ret