Function at 0x4fa470
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e936
mov eax, dword fs:[0]
push eax
sub esp, 0x174
push esi
mov eax, dword [0x56f28c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x30
call fcn.00418090
test eax, eax
jne 0x4fa4b6
jmp 0x4face8
mov ecx, dword [ebp - 0x15c]
add ecx, 0x84
call fcn.004dab10
movzx eax, al
test eax, eax
jne 0x4fa4d3
jmp 0x4face8
lea ecx, [ebp - 0x8c]
call fcn.004457d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004457d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x8c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.004b3a40
add esp, 0x10
mov byte [ebp - 4], 2
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa4]
push edx
call fcn.004b4250
add esp, 0x10
mov byte [ebp - 4], 3
push 0x5439c0
lea ecx, [ebp - 0x5c]
call fcn.0042dfe0
test eax, eax
je 0x4fa572
push 0x5439c4
lea ecx, [ebp - 0xa4]
call fcn.0042dfe0
test eax, eax
jne 0x4fa572
push 0x5439c8
lea ecx, [ebp - 0xa4]
call fcn.00427f80
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x88
call fcn.004a1f10
mov ecx, eax
call fcn.0049c850
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x68]
call fcn.004dab10
movzx ecx, al
test ecx, ecx
jne 0x4fa5eb
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.004bfa60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.004458f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004458f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004458f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004458f0
jmp 0x4face8
lea ecx, [ebp - 0xa0]
call fcn.00439b90
lea ecx, [ebp - 0x88]
call fcn.00439b90
lea edx, [ebp - 0xc4]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x84
call fcn.004a1f10
mov ecx, eax
call fcn.0049c7a0
push eax
lea ecx, [ebp - 0x88]
call fcn.004a0450
mov eax, dword [ebp - 0x88]
add eax, 0xd
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x84]
add ecx, 0x1c
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x84]
add edx, 0x18
mov dword [ebp - 0x64], edx
push 1
push 0x5439d4
mov eax, dword [ebp - 0x15c]
add eax, 0x88
push ecx
mov ecx, esp
mov dword [ebp - 0xc8], esp
push eax
call fcn.00499e40
mov dword [ebp - 0x160], eax
call fcn.004d9930
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xcc], esp
push str._g_bg_
call fcn.00427f00
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 0x168], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.004a1f10
mov ecx, eax
call fcn.0049c900
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x88
call fcn.004a1f10
mov ecx, eax
call fcn.0049c8c0
push eax
lea edx, [ebp - 0x78]
push edx
mov byte [ebp - 4], 4
mov ecx, 0x57357c
call fcn.004976d0
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00417da0
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x9c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x98], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x94], edx
push 1
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x88
call fcn.004a1f10
mov ecx, eax
call fcn.0049c800
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x78]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x70], 0
mov edx, dword [ebp - 0x15c]
mov dword [edx + 0x80], 0
mov dword [ebp - 0x70], 0
jmp 0x4fa77a
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x5c]
call fcn.0046ade0
push eax
call fcn.0050091c
add esp, 4
cmp dword [ebp - 0x70], eax
jae 0x4fa8a0
cmp dword [ebp - 0x70], 6
jae 0x4fa8a0
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], ecx
push 0
lea ecx, [ebp - 0xb4]
call fcn.004c3a40
mov byte [ebp - 4], 6
lea edx, [ebp - 0xb4]
push edx
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0044e720
movzx ecx, ax
push ecx
call fcn.004cab20
add esp, 4
push eax
push 0xb
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x15c]
lea ecx, [eax + edx*4 + 0x94]
call fcn.004a1f10
mov ecx, eax
call fcn.004c3da0
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x15c]
lea eax, [edx + ecx*4 + 0x94]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004a7bf0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.004da0f0
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
call fcn.004bfa60
push 1
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x15c]
lea eax, [edx + ecx*4 + 0x94]
push ecx
mov ecx, esp
mov dword [ebp - 0xe4], esp
push eax
call fcn.004a7bf0
mov dword [ebp - 0x16c], eax
call fcn.004d8c80
add esp, 8
mov ecx, dword [ebp - 0x24]
add ecx, 0xb
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x80]
add eax, 1
mov ecx, dword [ebp - 0x15c]
mov dword [ecx + 0x80], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb4]
call fcn.0048c460
jmp 0x4fa771
cmp dword [ebp - 0x70], 6
jae 0x4fa8e2
push 0
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x15c]
lea ecx, [eax + edx*4 + 0x94]
push ecx
mov edx, esp
mov dword [ebp - 0xe8], esp
push ecx
mov ecx, edx
call fcn.004a7bf0
mov dword [ebp - 0x170], eax
call fcn.004d8c80
add esp, 8
mov eax, dword [ebp - 0x70]
add eax, 1
mov dword [ebp - 0x70], eax
jmp 0x4fa8a0
lea ecx, [ebp - 0x90]
call fcn.004457d0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x8c]
push eax
push 0x5439fc
lea ecx, [ebp - 0x90]
push ecx
call fcn.00428670
add esp, 0x14
push 1
lea ecx, [ebp - 0x90]
call fcn.0046ade0
push eax
mov edx, dword [ebp - 0x15c]
add edx, 0x8c
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
push edx
call fcn.00499e40
mov dword [ebp - 0x174], eax
call fcn.004d9930
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xf0], esp
lea eax, [ebp - 0x90]
push eax
call fcn.00418970
mov dword [ebp - 0x178], eax
mov ecx, dword [ebp - 0x178]
mov dword [ebp - 0x17c], ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x68]
call fcn.004a1f10
mov ecx, eax
call fcn.0049c900
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x88
call fcn.004a1f10
mov ecx, eax
call fcn.0049c8c0
push eax
lea edx, [ebp - 0xf8]
push edx
mov byte [ebp - 4], 8
mov ecx, 0x57357c
call fcn.004976d0
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x108]
call fcn.00417da0
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x9c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x98], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x94], edx
push 1
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x8c
call fcn.004a1f10
mov ecx, eax
call fcn.0049c800
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x78]
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x118]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x90
call fcn.004a1f10
mov ecx, eax
call fcn.0049c7a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00434380
mov eax, dword [ebp - 0x24]
add eax, 5
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x1c]
call fcn.00417e40
add eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417e20
add eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x128]
call fcn.00417da0
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x9c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x98], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x94], edx
push 1
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x90
call fcn.004a1f10
mov ecx, eax
call fcn.0049c800
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x84
call fcn.004a1f10
mov ecx, eax
call fcn.0049c7a0
push eax
lea ecx, [ebp - 0x88]
call fcn.004a0450
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebp - 0x15c]
add ecx, 0x90
call fcn.004a1f10
mov ecx, eax
call fcn.0049c7a0
push eax
lea ecx, [ebp - 0xa0]
call fcn.004a0450
mov eax, dword [ebp - 0x98]
add eax, 0xd
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x6c
call fcn.00417e20
mov esi, eax
lea ecx, [ebp - 0x88]
call fcn.00417e20
sub esi, eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x88]
call fcn.00417e40
mov ecx, dword [ebp - 0x15c]
add eax, dword [ecx + 0x7c]
push eax
lea ecx, [ebp - 0x88]
call fcn.00417e20
add eax, dword [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x15c]
mov eax, dword [edx + 0x7c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00417da0
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x94], edx
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x4fabef
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ecx + 0x68]
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
push 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0x30
call fcn.00417fc0
lea ecx, [ebp - 0x158]
push ecx
mov ecx, dword [ebp - 0x15c]
add ecx, 0xac
call fcn.004a1f10
mov ecx, eax
call fcn.0049c7a0
push eax
lea ecx, [ebp - 0x58]
call fcn.00434380
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 0x6c]
add ecx, 0x3b
sub ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x58]
call fcn.00417e20
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
push 0
lea ecx, [ebp - 0x38]
call fcn.00439b90
push eax
mov ecx, dword [ebp - 0x15c]
add ecx, 0xac
call fcn.004a1f10
mov ecx, eax
call fcn.0049c800
mov ecx, dword [ebp - 0x15c]
call fcn.004f9fd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.004458f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
call fcn.004bfa60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.004458f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004458f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.004458f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.004458f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8