Function at 0x4d4d00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57f096
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c7128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d4d4c
mov ecx, eax
call fcn.00425220
mov esi, eax
jmp 0x4d4d4e
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.004f52c0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4d4d9b
mov ecx, eax
call fcn.004080b0
mov esi, eax
jmp 0x4d4d9d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x13c], esi
je 0x4d4dcc
test esi, esi
je 0x4d4db6
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x13c]
mov dword [edi + 0x13c], esi
test eax, eax
je 0x4d4dcc
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 [0x584f30]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
push 0xc0
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4d4e27
mov ecx, eax
call fcn.0041eb30
mov esi, eax
jmp 0x4d4e29
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 [0x584f00]
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.004f52c0
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x4d4ea9
mov ecx, eax
call fcn.00412cf0
mov esi, eax
jmp 0x4d4eab
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x140], esi
je 0x4d4eda
test esi, esi
je 0x4d4ec4
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x140]
mov dword [edi + 0x140], esi
test eax, eax
je 0x4d4eda
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 0x584e0c
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 [0x5c70ac]
cmp eax, 0xffffffff
jne 0x4d4f89
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d4f7d
mov dword [0x5c70ac], 1
jmp 0x4d4f8d
mov dword [0x5c70ac], 0
jmp 0x4d4f9a
test eax, eax
je 0x4d4f9a
mov ecx, dword [edi + 0x140]
push 0xffffffffffffffec
call fcn.00414250
mov ecx, dword [edi + 0x140]
push 2
call fcn.00409bc0
push 0x12c
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x4d4fd0
mov ecx, eax
call fcn.00411580
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x4d4fd5
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 [0x5a4990]
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 [0x584bb0]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x170
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4d5043
mov ecx, eax
call fcn.00412cf0
mov esi, eax
jmp 0x4d5045
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x148], esi
je 0x4d5074
test esi, esi
je 0x4d505e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x148]
mov dword [edi + 0x148], esi
test eax, eax
je 0x4d5074
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 0x585240
call fcn.00407900
mov ecx, dword [edi + 0x148]
call fcn.004133b0
mov ecx, dword [edi + 0x148]
movaps xmm0, xmmword [0x585290]
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.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x4d5123
mov ecx, eax
call fcn.00411580
mov esi, eax
jmp 0x4d5125
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x150], esi
je 0x4d5154
test esi, esi
je 0x4d513e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x150]
mov dword [edi + 0x150], esi
test eax, eax
je 0x4d5154
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 [0x585320]
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 [0x5852d0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0xc0
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x4d51cd
mov ecx, eax
call fcn.0041eb30
mov esi, eax
jmp 0x4d51cf
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 [0x585310]
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.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x4d5238
mov ecx, eax
call fcn.00417b20
mov esi, eax
jmp 0x4d523a
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x15c], esi
je 0x4d5269
test esi, esi
je 0x4d5253
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x15c]
mov dword [edi + 0x15c], esi
test eax, eax
je 0x4d5269
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 [0x5852c0]
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 [0x585300]
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 0x4d52ed
lea eax, [edi + 0x12c]
test eax, eax
je 0x4d52ed
push eax
push 0
call fcn.00401c60
push 0x188
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4d5313
mov ecx, eax
call fcn.0042f1c0
mov esi, eax
jmp 0x4d5315
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x154], esi
je 0x4d5344
test esi, esi
je 0x4d532e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x154]
mov dword [edi + 0x154], esi
test eax, eax
je 0x4d5344
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 [0x5c70ac]
cmp eax, 0xffffffff
jne 0x4d5428
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d53ad
movaps xmm0, xmmword [0x5852e0]
mov dword [0x5c70ac], 1
jmp 0x4d53be
mov dword [0x5c70ac], 0
movaps xmm0, xmmword [0x5852f0]
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 [0x5cbdcc]
test eax, eax
jne 0x4d5443
push 0x178
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4d5435
mov ecx, eax
call fcn.00448830
jmp 0x4d5437
test eax, eax
je 0x4d53b7
movaps xmm0, xmmword [0x5852e0]
jmp 0x4d53be
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5cbdcc], 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.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4d549e
mov ecx, eax
call fcn.00411580
mov esi, eax
jmp 0x4d54a0
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.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4d54d3
mov ecx, eax
call fcn.00425220
jmp 0x4d54d5
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 [0x5852a0]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x288
call fcn.004f52c0
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4d5533
mov ecx, eax
call fcn.00417b20
mov ecx, eax
mov dword [ebp - 0x10], eax
jmp 0x4d5538
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xb
cmp dword [edi + 0x158], ecx
je 0x4d5567
test ecx, ecx
je 0x4d5551
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 0x4d5567
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 [0x585330]
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 [0x5852b0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x585270
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 0x4d5638
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 [0x5c70ac]
cmp eax, 0xffffffff
jne 0x4d5674
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d5668
mov dword [0x5c70ac], 1
jmp 0x4d5678
mov dword [0x5c70ac], 0
jmp 0x4d5685
test eax, eax
je 0x4d5685
mov ecx, dword [edi + 0x158]
push 0x16
call fcn.0041d370
mov ecx, dword [edi + 0x158]
test ecx, ecx
je 0x4d569f
add edi, 0x12c
je 0x4d569f
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 0x4d56be
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