Function at 0x4d4f80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f386
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c8128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d4fcc
mov ecx, eax
call fcn.00425220
mov esi, eax
jmp 0x4d4fce
xor esi, esi
push 0xf6f6f6
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.004252e0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0xa4]
push 2
mov ecx, edi
call fcn.00409bc0
push 0x118
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4d501b
mov ecx, eax
call fcn.004080b0
mov esi, eax
jmp 0x4d501d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x13c], esi
je 0x4d504c
test esi, esi
je 0x4d5036
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x13c]
mov dword [edi + 0x13c], esi
test eax, eax
je 0x4d504c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x13c]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x13c]
push 1
call fcn.00409b50
mov ecx, dword [edi + 0x13c]
movaps xmm0, xmmword [0x585f40]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
push 0xc0
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4d50a7
mov ecx, eax
call fcn.0041eb30
mov esi, eax
jmp 0x4d50a9
xor esi, esi
push 3
push 0x95
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041e800
mov ecx, dword [edi + 0x13c]
push esi
mov eax, dword [ecx]
call dword [eax + 0xa4]
mov ecx, dword [edi + 0x13c]
push 1
call fcn.0040ae10
mov ecx, dword [edi + 0x13c]
movaps xmm0, xmmword [0x585f10]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
mov ecx, dword [edi + 0x13c]
push 2
call fcn.00409bc0
push 0x170
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x4d5129
mov ecx, eax
call fcn.00412cf0
mov esi, eax
jmp 0x4d512b
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x140], esi
je 0x4d515a
test esi, esi
je 0x4d5144
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x140]
mov dword [edi + 0x140], esi
test eax, eax
je 0x4d515a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x140]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x140]
push 1
call fcn.00409b50
mov ecx, dword [edi + 0x140]
push 1
call fcn.00409b20
mov ecx, dword [edi + 0x140]
push 1
call fcn.00409af0
push ecx
mov ecx, esp
push 0x585e14
call fcn.00407900
mov ecx, dword [edi + 0x140]
call fcn.004133b0
mov ecx, dword [edi + 0x140]
xorps xmm0, xmm0
push 1
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
mov ecx, dword [edi + 0x140]
push 1
call fcn.0040ae10
mov ecx, dword [edi + 0x140]
push 0x333333
mov eax, dword [ecx]
call dword [eax + 0x12c]
mov eax, dword [0x5c80ac]
cmp eax, 0xffffffff
jne 0x4d5209
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d51fd
mov dword [0x5c80ac], 1
jmp 0x4d520d
mov dword [0x5c80ac], 0
jmp 0x4d521a
test eax, eax
je 0x4d521a
mov ecx, dword [edi + 0x140]
push 0xffffffffffffffec
call fcn.00414250
mov ecx, dword [edi + 0x140]
push 2
call fcn.00409bc0
push 0x12c
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x4d5250
mov ecx, eax
call fcn.00411580
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x4d5255
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
mov ecx, esi
push edi
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x14]
push 1
mov ecx, esi
call fcn.00409b50
mov edx, dword [esi]
mov ecx, esi
movaps xmm0, xmmword [0x5a5990]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
mov edx, dword [esi]
mov ecx, esi
movaps xmm0, xmmword [0x585bb0]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x170
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4d52c3
mov ecx, eax
call fcn.00412cf0
mov esi, eax
jmp 0x4d52c5
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x148], esi
je 0x4d52f4
test esi, esi
je 0x4d52de
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x148]
mov dword [edi + 0x148], esi
test eax, eax
je 0x4d52f4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x148]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x148]
push 0
call fcn.00409b50
mov ecx, dword [edi + 0x148]
push 1
call fcn.00409b20
mov ecx, dword [edi + 0x148]
push 1
call fcn.00409af0
push ecx
mov ecx, esp
push 0x586250
call fcn.00407900
mov ecx, dword [edi + 0x148]
call fcn.004133b0
mov ecx, dword [edi + 0x148]
movaps xmm0, xmmword [0x5862a0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
mov ecx, dword [edi + 0x148]
push 2
call fcn.0040ae10
mov ecx, dword [edi + 0x148]
push 0x333333
mov eax, dword [ecx]
call dword [eax + 0x12c]
push 0x12c
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x4d53a3
mov ecx, eax
call fcn.00411580
mov esi, eax
jmp 0x4d53a5
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x150], esi
je 0x4d53d4
test esi, esi
je 0x4d53be
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x150]
mov dword [edi + 0x150], esi
test eax, eax
je 0x4d53d4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x150]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x150]
push 0
call fcn.00409b50
mov ecx, dword [edi + 0x150]
movaps xmm0, xmmword [0x586330]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
mov ecx, dword [edi + 0x150]
movaps xmm0, xmmword [0x5862e0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0xc0
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x4d544d
mov ecx, eax
call fcn.0041eb30
mov esi, eax
jmp 0x4d544f
xor esi, esi
push 3
push 0x8c
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0041e800
push 2
mov ecx, esi
call fcn.0041fa00
movaps xmm0, xmmword [0x586320]
sub esp, 0x10
mov eax, esp
mov ecx, esi
movups xmmword [eax], xmm0
call fcn.0041fb50
mov ecx, dword [edi + 0x150]
push esi
mov eax, dword [ecx]
call dword [eax + 0xa4]
push 0x288
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x4d54b8
mov ecx, eax
call fcn.00417b20
mov esi, eax
jmp 0x4d54ba
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x15c], esi
je 0x4d54e9
test esi, esi
je 0x4d54d3
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x15c]
mov dword [edi + 0x15c], esi
test eax, eax
je 0x4d54e9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x15c]
push dword [edi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x15c]
push 2
call fcn.00409b50
mov ecx, dword [edi + 0x15c]
movaps xmm0, xmmword [0x5862d0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
mov ecx, dword [edi + 0x15c]
push 4
push 0x9c
call fcn.0041c750
mov ecx, dword [edi + 0x15c]
movaps xmm0, xmmword [0x586310]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
mov ecx, dword [edi + 0x15c]
test ecx, ecx
je 0x4d556d
lea eax, [edi + 0x12c]
test eax, eax
je 0x4d556d
push eax
push 0
call fcn.00401c60
push 0x188
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4d5593
mov ecx, eax
call fcn.0042f1c0
mov esi, eax
jmp 0x4d5595
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x154], esi
je 0x4d55c4
test esi, esi
je 0x4d55ae
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x154]
mov dword [edi + 0x154], esi
test eax, eax
je 0x4d55c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x154]
push 0x800
call fcn.0042fbb0
mov ecx, dword [edi + 0x154]
push dword [edi + 0x150]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x154]
push 4
call fcn.00409b50
mov ecx, dword [edi + 0x154]
push 0xf6f6f6
call fcn.004303a0
mov eax, dword [0x5c80ac]
cmp eax, 0xffffffff
jne 0x4d56a8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d562d
movaps xmm0, xmmword [0x5862f0]
mov dword [0x5c80ac], 1
jmp 0x4d563e
mov dword [0x5c80ac], 0
movaps xmm0, xmmword [0x586300]
mov ecx, dword [edi + 0x154]
push 1
sub esp, 0x10
mov eax, esp
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push ecx
mov ecx, esp
push str.c:program_file_
call fcn.00407900
mov ecx, dword [edi + 0x154]
call fcn.0042f570
mov ecx, dword [edi + 0x154]
push 0
mov eax, dword [ecx]
call dword [eax + 0xf0]
mov eax, dword [0x5cce8c]
test eax, eax
jne 0x4d56c3
push 0x178
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4d56b5
mov ecx, eax
call fcn.00448830
jmp 0x4d56b7
test eax, eax
je 0x4d5637
movaps xmm0, xmmword [0x5862f0]
jmp 0x4d563e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5cce8c], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + 4]
call fcn.00450ee0
push ecx
mov esi, esp
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
push eax
call fcn.00406e20
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ecx, dword [edi + 0x154]
call fcn.0042f570
push 0x12c
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4d571e
mov ecx, eax
call fcn.00411580
mov esi, eax
jmp 0x4d5720
xor esi, esi
mov eax, dword [esi]
mov ecx, esi
push edi
mov byte [ebp - 4], 0xb
call dword [eax + 0x14]
push 4
mov ecx, esi
call fcn.00409b50
push 0x44
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4d5753
mov ecx, eax
call fcn.00425220
jmp 0x4d5755
xor eax, eax
push 0xffffff
mov ecx, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xb
call fcn.004252e0
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
call dword [eax + 0xa4]
mov edx, dword [esi]
mov ecx, esi
movaps xmm0, xmmword [0x5862b0]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x288
call fcn.004f554a
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4d57b3
mov ecx, eax
call fcn.00417b20
mov ecx, eax
mov dword [ebp - 0x10], eax
jmp 0x4d57b8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xb
cmp dword [edi + 0x158], ecx
je 0x4d57e7
test ecx, ecx
je 0x4d57d1
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x158]
mov dword [edi + 0x158], ecx
test eax, eax
je 0x4d57e7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [edi + 0x158]
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [edi + 0x158]
push 1
call fcn.00409b50
mov ecx, dword [edi + 0x158]
push 1
call fcn.0040ae10
mov ecx, dword [edi + 0x158]
movaps xmm0, xmmword [0x586340]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
sub esp, 0x10
mov eax, esp
push 4
mov dword [eax], 0xa
mov dword [eax + 4], 0xa
mov dword [eax + 8], 0x82
mov dword [eax + 0xc], 0x1a
mov ecx, dword [edi + 0x158]
push 0x85
call fcn.0041ca60
mov ecx, dword [edi + 0x158]
movaps xmm0, xmmword [0x5862c0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x586280
lea ecx, [ebp - 0x10]
call fcn.00407900
mov ecx, dword [edi + 0x158]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xf
call fcn.004193d0
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4d58b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi + 0x158]
push 0xffffff
call fcn.004199c0
mov eax, dword [0x5c80ac]
cmp eax, 0xffffffff
jne 0x4d58f4
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d58e8
mov dword [0x5c80ac], 1
jmp 0x4d58f8
mov dword [0x5c80ac], 0
jmp 0x4d5905
test eax, eax
je 0x4d5905
mov ecx, dword [edi + 0x158]
push 0x16
call fcn.0041d370
mov ecx, dword [edi + 0x158]
test ecx, ecx
je 0x4d591f
add edi, 0x12c
je 0x4d591f
push edi
push 0
call fcn.00401c60
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4d593e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret