Function at 0x4d79b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5822c6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5cc128]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x44
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4d79fc
mov ecx, eax
call fcn.00425220
mov esi, eax
jmp 0x4d79fe
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 pe_nt_image_headers32
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x4d7a4b
mov ecx, eax
call fcn.004080b0
mov esi, eax
jmp 0x4d7a4d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x13c], esi
je 0x4d7a7c
test esi, esi
je 0x4d7a66
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x13c]
mov dword [edi + 0x13c], esi
test eax, eax
je 0x4d7a7c
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 [0x588f30]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
push 0xc0
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4d7ad7
mov ecx, eax
call fcn.0041eb30
mov esi, eax
jmp 0x4d7ad9
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 [0x588f00]
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.004f81ee
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x4d7b59
mov ecx, eax
call fcn.00412cf0
mov esi, eax
jmp 0x4d7b5b
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x140], esi
je 0x4d7b8a
test esi, esi
je 0x4d7b74
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x140]
mov dword [edi + 0x140], esi
test eax, eax
je 0x4d7b8a
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 0x588e0c
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 [0x5cc0ac]
cmp eax, 0xffffffff
jne 0x4d7c39
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d7c2d
mov dword [0x5cc0ac], 1
jmp 0x4d7c3d
mov dword [0x5cc0ac], 0
jmp 0x4d7c4a
test eax, eax
je 0x4d7c4a
mov ecx, dword [edi + 0x140]
push 0xffffffffffffffec
call fcn.00414250
mov ecx, dword [edi + 0x140]
push 2
call fcn.00409bc0
push 0x12c
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x4d7c80
mov ecx, eax
call fcn.00411580
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x4d7c85
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 [0x5a8ab0]
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 [0x588bb0]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x170
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4d7cf3
mov ecx, eax
call fcn.00412cf0
mov esi, eax
jmp 0x4d7cf5
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x148], esi
je 0x4d7d24
test esi, esi
je 0x4d7d0e
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x148]
mov dword [edi + 0x148], esi
test eax, eax
je 0x4d7d24
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 0x589240
call fcn.00407900
mov ecx, dword [edi + 0x148]
call fcn.004133b0
mov ecx, dword [edi + 0x148]
movaps xmm0, xmmword [0x589290]
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.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x4d7dd3
mov ecx, eax
call fcn.00411580
mov esi, eax
jmp 0x4d7dd5
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x150], esi
je 0x4d7e04
test esi, esi
je 0x4d7dee
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x150]
mov dword [edi + 0x150], esi
test eax, eax
je 0x4d7e04
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 [0x589320]
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 [0x5892d0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0xc0
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 7
test eax, eax
je 0x4d7e7d
mov ecx, eax
call fcn.0041eb30
mov esi, eax
jmp 0x4d7e7f
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 [0x589310]
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.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x4d7ee8
mov ecx, eax
call fcn.00417b20
mov esi, eax
jmp 0x4d7eea
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x15c], esi
je 0x4d7f19
test esi, esi
je 0x4d7f03
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x15c]
mov dword [edi + 0x15c], esi
test eax, eax
je 0x4d7f19
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 [0x5892c0]
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 [0x589300]
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 0x4d7f9d
lea eax, [edi + 0x12c]
test eax, eax
je 0x4d7f9d
push eax
push 0
call fcn.00401c60
push 0x188
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 9
test eax, eax
je 0x4d7fc3
mov ecx, eax
call fcn.0042f1c0
mov esi, eax
jmp 0x4d7fc5
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x154], esi
je 0x4d7ff4
test esi, esi
je 0x4d7fde
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x154]
mov dword [edi + 0x154], esi
test eax, eax
je 0x4d7ff4
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 [0x5cc0ac]
cmp eax, 0xffffffff
jne 0x4d80d8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d805d
movaps xmm0, xmmword [0x5892e0]
mov dword [0x5cc0ac], 1
jmp 0x4d806e
mov dword [0x5cc0ac], 0
movaps xmm0, xmmword [0x5892f0]
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 [0x5d0dcc]
test eax, eax
jne 0x4d80f3
push 0x178
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4d80e5
mov ecx, eax
call fcn.00448830
jmp 0x4d80e7
test eax, eax
je 0x4d8067
movaps xmm0, xmmword [0x5892e0]
jmp 0x4d806e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5d0dcc], eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [eax + 4]
call fcn.00450ed0
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.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4d814e
mov ecx, eax
call fcn.00411580
mov esi, eax
jmp 0x4d8150
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.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x4d8183
mov ecx, eax
call fcn.00425220
jmp 0x4d8185
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 [0x5892a0]
push 1
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x288
call fcn.004f81ee
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x4d81e3
mov ecx, eax
call fcn.00417b20
mov ecx, eax
mov dword [ebp - 0x10], eax
jmp 0x4d81e8
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 0xb
cmp dword [edi + 0x158], ecx
je 0x4d8217
test ecx, ecx
je 0x4d8201
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 0x4d8217
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 [0x589330]
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 [0x5892b0]
push 1
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x7c]
push 0x589270
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 0x4d82e8
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 [0x5cc0ac]
cmp eax, 0xffffffff
jne 0x4d8324
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x4d8318
mov dword [0x5cc0ac], 1
jmp 0x4d8328
mov dword [0x5cc0ac], 0
jmp 0x4d8335
test eax, eax
je 0x4d8335
mov ecx, dword [edi + 0x158]
push 0x16
call fcn.0041d370
mov ecx, dword [edi + 0x158]
test ecx, ecx
je 0x4d834f
add edi, 0x12c
je 0x4d834f
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 0x4d836e
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