Function at 0x4df2fa
Capabilities:
Check os version
Terminate thread

Disassembly:
push 0x158
mov eax, 0x51641f
call fcn.005060cc
mov edi, ecx
mov edx, dword [0xd5b274]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
test edx, edx
jne 0x4df369
push 0x90
lea eax, [ebp - 0xa0]
mov dword [0xd5b274], 1
push ebx
push eax
mov dword [ebp - 0xa4], 0x94
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
call esi
imul eax, dword [ebp - 0xa0], 0xa
mov edx, dword [0xd5b274]
add eax, dword [ebp - 0x9c]
mov dword [0xd5b270], eax
jmp 0x4df36e
mov eax, dword [0xd5b270]
cmp eax, 0x33
je 0x4df3d1
test edx, edx
jne 0x4df3bb
push 0x90
lea eax, [ebp - 0x134]
mov dword [0xd5b274], 1
push ebx
push eax
mov dword [ebp - 0x138], 0x94
call fcn.004f1a90
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call esi
imul eax, dword [ebp - 0x134], 0xa
add eax, dword [ebp - 0x130]
mov dword [0xd5b270], eax
cmp eax, 0x34
jne 0x4df5b6
call fcn.00426920
test eax, eax
je 0x4df5b6
test edi, edi
je 0x4df3e6
mov eax, dword [0xd519f8]
test eax, eax
je 0x4df3e6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x140]
call fcn.004232f6
lea ecx, [ebp - 0x140]
mov dword [ebp - 4], ebx
call fcn.0040d8e5
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x144], ebx
push 0xd5afc8
mov edx, 0xd5afc4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x13c]
call fcn.0040a740
mov dword [esp], 0x2001f
lea ecx, [ebp - 0x14c]
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00407e8e
mov edx, dword [ebp - 0x13c]
or edi, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4df465
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4df58d
push ebx
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.0041489b
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x15c]
jmp 0x4df576
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x160], esp
push 0x51e784
call fcn.004094e6
push 0x553dc8
mov edx, esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x150]
call fcn.00405cb9
mov ecx, esp
mov byte [ebp - 4], 4
push str.DefaultIcon
mov edx, eax
call fcn.00405cb9
pop ecx
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 5
call fcn.0041472c
add esp, 0xc
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x150]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4df506
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x13c]
call fcn.0040d8e5
mov eax, dword [ebp - 0x13c]
cmp dword [eax - 0xc], 0xa
jle 0x4df558
push str.anvir.exe
push eax
call fcn.004f2170
pop ecx
pop ecx
test eax, eax
jne 0x4df545
push dword [ebp - 0x140]
push dword [ebp - 0x13c]
call fcn.004f2170
pop ecx
pop ecx
test eax, eax
je 0x4df552
push dword [esi]
lea ecx, [ebp - 0x14c]
call fcn.00407eec
mov eax, dword [ebp - 0x13c]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 2
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4df573
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
cmp esi, dword [ebp - 0x158]
jne 0x4df48f
lea ecx, [ebp - 0x15c]
call fcn.0041584b
lea ecx, [ebp - 0x14c]
call fcn.00408049
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x140]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4df5b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00506076
ret