Function at 0x4d1410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4d1418
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4d1d76
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 0xc]
cmp byte [ebx + 0x30], 0
jne 0x4d147a
mov dl, 8
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4d1471
lea ecx, [ebp - 0x14]
mov edx, 8
mov eax, ebx
call fcn.00402668
lea eax, [ebp - 0x14]
mov edx, 0x4d1d90
call fcn.00401450
mov ecx, dword [ebp - 0x14]
mov dl, 8
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0x34]
call fcn.004cc27c
mov byte [ebx + 0x30], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call fcn.00401790
xor ecx, ecx
push ebp
push 0x4d1d22
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4d14e4
push 0
mov eax, dword [0x5a3fe8]
mov eax, dword [eax]
call eax
pop ecx
lea edx, [ebp - 0x18]
call fcn.004027b8
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 8]
call fcn.00401418
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, 0x4d1db0
call fcn.00401458
mov ecx, dword [ebp - 0x1c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
cmp byte [0x59ac4c], 0
jne 0x4d1509
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xc0], 0
je 0x4d1509
mov eax, dword [0x5a3c98]
mov eax, dword [eax]
call eax
mov byte [0x59ac4c], 1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
jne 0x4d153c
mov eax, dword [ebp - 0xc]
call fcn.004cd8dc
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x3c], ebx
test ebx, ebx
jne 0x4d153c
mov ecx, 0x4d1e04
mov dl, 1
mov eax, dword [0x4bad48]
call fcn.004028c8
call fcn.00401238
xor ecx, ecx
push ebp
push 0x4d1cd6
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 0xc]
cmp word [eax + 0xba], 0
je 0x4d1569
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0xbc]
call dword [ebx + 0xb8]
mov eax, dword [0x5a3a34]
cmp dword [eax], 0x1010000f
jb 0x4d15d6
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x94]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3ca0]
mov eax, dword [eax]
call eax
add esp, 8
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4d15d6
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x94]
mov eax, dword [0x4ba5a0]
call fcn.004035b8
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4d1e4c
call fcn.00401458
mov ecx, dword [ebp - 0x20]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc4]
test eax, eax
je 0x4d15f5
test byte [eax + 0x45], 1
je 0x4d15f5
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d11b0
jmp 0x4d1674
push 0x4cdbc0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e04]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a4074]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004d3aac
test al, al
jne 0x4d1674
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d1666
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x54], 0
jne 0x4d1666
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.004d06fc
jmp 0x4d1674
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 0xc]
call fcn.004d04e4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004d3aa4
test al, al
jne 0x4d1692
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004d3ab4
test al, al
je 0x4d169c
mov eax, dword [ebp - 0xc]
call fcn.004cfe3c
jmp 0x4d16dd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d16cf
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x44], 0
jne 0x4d16cf
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.004d0084
jmp 0x4d16dd
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xc]
call fcn.004cfc28
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x4c]
call fcn.004d3ab4
test al, al
jne 0x4d173c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d1728
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x5c], 0
jne 0x4d1728
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x64], 0
jne 0x4d1728
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.004cfae4
jmp 0x4d173c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x64]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x5c]
mov eax, dword [ebp - 0xc]
call fcn.004cf324
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp - 0xc]
call fcn.004ced84
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp - 0xc]
call fcn.004cf0ec
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4d178b
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x70], 0
jne 0x4d178b
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.004d0de0
jmp 0x4d1799
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x70]
mov eax, dword [ebp - 0xc]
call fcn.004d0afc
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x8c]
cmp al, 1
jne 0x4d17d6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
mov edx, 1
call fcn.004b2328
test eax, eax
jne 0x4d1846
push 0x4d1e84
mov cl, 1
mov edx, dword [0x4bad48]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp 0x4d1846
test al, al
jbe 0x4d1846
and eax, 0x7f
mov eax, dword [eax*4 + 0x59ac14]
push eax
mov eax, dword [0x5a3eec]
mov eax, dword [eax]
call eax
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4d180a
push 0x4d1ed4
mov cl, 1
mov edx, dword [0x4bad48]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
push 0
push 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e58]
mov eax, dword [eax]
call eax
add esp, 0x10
test eax, eax
jne 0x4d183b
push 0x4d1f24
mov cl, 1
mov edx, dword [0x4bad48]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push ebx
mov eax, dword [0x5a3d9c]
mov eax, dword [eax]
call eax
pop ecx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x84]
or ebx, 0x4000
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x41], 5
jne 0x4d1865
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x41], 0
mov eax, dword [0x5a3a34]
cmp dword [eax], 0x1010000f
jb 0x4d18ea
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
cmp al, byte [edx + 0x42]
ja 0x4d198b
and eax, 0x7f
mov eax, dword [eax*4 + str.6__Q__]
push 0
push eax
push 0x7b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e58]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x42]
mov eax, dword [eax*4 + str.6__Q__]
push 0
push eax
push 0x7c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e58]
mov eax, dword [eax]
call eax
add esp, 0x10
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
jmp 0x4d198b
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 0x41]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + 0x42]
cmp al, dl
ja 0x4d198b
and ebx, 0xfdffffff
and ebx, 0xfbffffff
and ebx, 0xf7ffffff
and ebx, 0xefffffff
test al, al
jbe 0x4d1950
cmp al, 1
jne 0x4d1928
or ebx, 0x2000000
jmp 0x4d1950
cmp al, 2
jne 0x4d193a
or ebx, 0x2000000
or ebx, 0x4000000
jmp 0x4d1950
cmp al, 3
jne 0x4d1950
or ebx, 0x2000000
or ebx, 0x4000000
or ebx, 0x10000000
cmp dl, 5
jae 0x4d198b
test dl, dl
jne 0x4d196d
or ebx, 0x4000000
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4d198b
cmp dl, 1
jne 0x4d1980
or ebx, 0x10000000
or ebx, 0x8000000
jmp 0x4d198b
cmp dl, 2
jne 0x4d198b
or ebx, 0x8000000
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4d19eb
push 0x4d1f74
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x41]
mov eax, dword [0x4ba030]
call fcn.004035b8
push dword [ebp - 0x3c]
push 0x4d1fa0
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x42]
mov eax, dword [0x4ba030]
call fcn.004035b8
push dword [ebp - 0x40]
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00401460
mov ecx, dword [ebp - 0x38]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0xb0]
mov eax, dword [ebp - 0xc]
call fcn.004d328c
mov eax, dword [0x5a3a34]
cmp dword [eax], 0x1010000f
ja 0x4d1a17
mov eax, ebx
and eax, 0x20
cmp eax, 0x20
jne 0x4d1a17
and ebx, 0xffffffdf
push 0
push ebx
push 0x20
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e58]
mov eax, dword [eax]
call eax
add esp, 0x10
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x88], 0
je 0x4d1a88
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x88]
mov ecx, 0
call fcn.00401420
mov eax, dword [ebp - 0x44]
call fcn.00401330
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e30]
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x4d1a9e
push 0x4d1fd0
mov cl, 1
mov edx, dword [0x4bad48]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
jmp 0x4d1a9e
mov ecx, 0x4d2010
mov dl, 1
mov eax, dword [0x4bad48]
call fcn.004028c8
call fcn.00401238
mov eax, dword [ebp - 0xc]
call fcn.004d2ef4
mov byte [ebp - 0xd], al
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x98]
push eax
push 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e58]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 0x10
jne 0x4d1b42
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3ea4]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4d1b02
push 0x4d2040
mov cl, 1
mov edx, dword [0x4bad48]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
push 0x4ce098
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a4040]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x9c]
cmp eax, 0x5000
je 0x4d1b42
push 0
push eax
push 0x2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3e58]
mov eax, dword [eax]
call eax
add esp, 0x10
test byte [ebp - 0xd], 2
je 0x4d1c15
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa0]
test eax, eax
jbe 0x4d1b6d
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a417c]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4ce308
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a4088]
mov eax, dword [eax]
call eax
add esp, 8
push 0x4ce4f8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a4060]
mov eax, dword [eax]
call eax
add esp, 8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
call fcn.00401440
test eax, eax
jle 0x4d1bf8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xa4]
call fcn.00401440
push eax
mov eax, dword [ebp - 0xc]
add eax, 0xa4
call fcn.00401490
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [0x5a3b68]
mov eax, dword [eax]
call eax
add esp, 0xc
test eax, eax
jne 0x4d1bf8
push 0x4d2084
mov cl, 1
mov edx, dword [0x4bad48]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x3c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4d1c15
mov ecx, 0x4d20dc
mov dl, 8
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x34]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
test al, al
je 0x4d1ccc
mov esi, 1
lea eax, [ebp - 4]
xor edx, edx
call fcn.004013d8
xor edi, edi
test esi, ebx
je 0x4d1c63
push dword [ebp - 4]
lea ecx, [ebp - 0x48]
mov edx, 8
mov eax, esi
call fcn.00402668
push dword [ebp - 0x48]
push 0x4d211c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00401460
add esi, esi
inc edi
cmp edi, 0x1f
jne 0x4d1c38
push 0x4d2130
lea ecx, [ebp - 0x50]
mov edx, 8
mov eax, ebx
call fcn.00402668
push dword [ebp - 0x50]
push 0x4d2158
push dword [ebp - 4]
lea eax, [ebp - 0x4c]
mov edx, 4
call fcn.00401460
mov ecx, dword [ebp - 0x4c]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.004d3584
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x4d216c
call fcn.00401458
mov ecx, dword [ebp - 0x54]
mov dl, 8
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d1d02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1d29
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc8]
add eax, 4
push eax
call fcn.004019ac
ret