Function at 0x4fd4a0
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x579429
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x5c3678]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
push 5
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebx + 0x30]
push ecx
xor edi, edi
mov byte [ebx + 0x49c], 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
cmp eax, 1
jne 0x4fd512
mov edi, ebx
call fcn.004f8e80
xor edi, edi
cmp dword [ebx + 0x490], 7
je 0x4fdfd2
mov dword [esp + 0x58], edi
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], edi
mov byte [esp + 0x60], 0
mov dword [esp + 0x78], edi
lea edx, [esp + 0x58]
push edx
mov ecx, esi
mov dword [esp + 0xe4], edi
call fcn.00456c40
test al, al
je 0x4fdb78
test dword [esp + 0x58], 0x4000
je 0x4fd58b
cmp dword [ebx + 0x200], edi
je 0x4fd571
mov byte [ebx + 0x49d], 1
jmp 0x4fdfbe
mov edx, dword [ebx + 0x38c]
mov eax, dword [edx + 0x10]
add ebx, 0x38c
push 1
mov ecx, ebx
call eax
jmp 0x4fdfbe
mov ecx, ebx
call fcn.004f78b0
mov eax, dword [ebx + 0x490]
mov esi, 9
cmp eax, 2
je 0x4fd79c
cmp eax, esi
je 0x4fd79c
mov eax, dword [esp + 0x58]
test al, 2
je 0x4fd5c5
mov dword [ebx + 0x490], 1
jmp 0x4fd79c
test al, 4
je 0x4fd5d8
mov dword [ebx + 0x490], 4
jmp 0x4fd79c
test al, 0x10
je 0x4fd5eb
mov dword [ebx + 0x490], 3
jmp 0x4fd79c
test al, 0x20
je 0x4fd5fe
mov dword [ebx + 0x490], 5
jmp 0x4fd79c
test al, 0x40
je 0x4fd611
mov dword [ebx + 0x490], 6
jmp 0x4fd79c
test al, al
jns 0x4fd624
mov dword [ebx + 0x490], 8
jmp 0x4fd79c
test eax, 0x100
je 0x4fd636
mov dword [ebx + 0x490], esi
jmp 0x4fd79c
test eax, 0x1000
je 0x4fd64c
mov dword [ebx + 0x490], 0xa
jmp 0x4fd79c
test eax, 0x8000
je 0x4fd811
mov dword [ebx + 0x490], 0xb
cmp dword [ebx + 0x4a8], edi
jne 0x4fd78d
mov eax, 0xf
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
lea edx, [esp + 0x7c]
push edx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x40]
mov byte [esp + 0xe4], 3
call fcn.004d72e0
mov eax, dword [esp + 0x38]
xor ecx, ecx
add esp, 4
cmp eax, edi
setne cl
inc ecx
mov dword [ebx + 0x1fc], ecx
cmp eax, edi
jne 0x4fd6da
or eax, 0xffffffff
jmp 0x4fd6f2
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x4fd6e9
lea eax, [esp + 0x24]
push eax
call fcn.00542983
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea esi, [esp + 0x9c]
mov dword [ebx + 0x4b4], eax
call fcn.00404bc0
add esp, 4
mov byte [esp + 0xe0], 4
cmp dword [eax + 0x18], 8
jb 0x4fd71f
mov eax, dword [eax + 4]
jmp 0x4fd722
add eax, 4
lea edi, [ebx + 0x4dc]
mov edx, eax
call fcn.00423a40
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 3
call fcn.0040eb20
push 0
push ebx
call fcn.004f4670
push 1
mov ecx, ebx
call fcn.004f4930
cmp dword [esp + 0x50], 0
jne 0x4fd768
push 0
push 3
push 1
mov eax, ebx
call fcn.004e9b70
lea ecx, [esp + 0x20]
call fcn.004231c0
lea ecx, [esp + 0x3c]
call fcn.004231c0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 0
call fcn.004231c0
xor edi, edi
mov ecx, dword [esp + 0x78]
call fcn.004fd320
mov dword [ebx + 0x4e8], eax
push ebx
call fcn.004efcc0
cmp dword [ebx + 0x4a8], edi
jne 0x4fd90f
mov eax, 0xf
mov dword [esp + 0xb0], eax
mov dword [esp + 0xac], edi
mov byte [esp + 0x9c], 0
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc8], edi
mov byte [esp + 0xb8], 0
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 5
call fcn.004614d0
push 0xffffffffffffffff
lea ecx, [ebx + 0x4c0]
push edi
cmp al, 1
jne 0x4fd8ef
lea edx, [esp + 0xbc]
push edx
jmp 0x4fd8f4
mov ecx, eax
shr ecx, 0x10
and cl, 1
mov dword [ebx + 0x490], edi
mov byte [0x5cedd5], cl
test eax, 0x200
je 0x4fd837
mov esi, ebx
call fcn.004fd380
xor edi, edi
jmp 0x4fd8b5
test eax, 0x2000
je 0x4fd88f
cmp dword [ebx + 0x4a8], edi
jne 0x4fd8b5
push edi
push edi
push 3
mov eax, ebx
mov dword [ebx + 0x490], 7
call fcn.004e9b70
cmp dword [ebx + 0x39c], edi
lea eax, [ebx + 0x39c]
je 0x4fd8b5
push 1
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
push 1
push 0xc350
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048b640
add esp, 8
xor edi, edi
jmp 0x4fd8b5
cmp dword [esp + 0x78], edi
jne 0x4fd8b5
push 0x800000
call fcn.0045ba50
add esp, 4
test al, al
je 0x4fd8b5
call fcn.0045cc90
test al, al
je 0x4fd8b5
mov dword [ebx + 0x4e8], esi
cmp dword [ebx + 0x4e8], edi
jne 0x4fd79c
mov ecx, dword [esp + 0x78]
call fcn.004fd320
cmp dword [ebx + 0x4a8], 2
jne 0x4fd796
cmp eax, edi
je 0x4fd79c
push edi
push eax
push 2
mov eax, ebx
call fcn.004e9b70
jmp 0x4fd79c
lea eax, [esp + 0x64]
push eax
call fcn.00423020
lea esi, [esp + 0x98]
mov byte [esp + 0xe0], 0
call fcn.004f8e30
xor edi, edi
cmp dword [ebx + 0x490], 0xa
je 0x4fd924
mov esi, str.BindParam
call fcn.004625f0
xor edi, edi
mov eax, dword [ebx + 0x490]
cmp eax, 5
jne 0x4fd98f
push 1
lea ecx, [esp + 0x18]
mov edi, ebx
call fcn.004f8a30
mov esi, dword [esp + 0x14]
cmp esi, 1
je 0x4fd97a
push 0x5cc9fe
push 0x10
call fcn.0053dd33
xor ecx, ecx
add esp, 8
cmp eax, ecx
je 0x4fd97a
push ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push eax
mov dword [eax + 4], esi
mov dword [eax], 4
mov ecx, dword [ebx + 0x30]
push 0x40b
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esp + 0x74], 0x10
jb 0x4fdfd2
mov edx, dword [esp + 0x60]
push edx
jmp 0x4fdfca
cmp eax, 0xa
jne 0x4fdbd9
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
lea eax, [esp + 0x3c]
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x80]
mov byte [esp + 0xe4], 8
call fcn.004d72e0
add esp, 4
cmp dword [esp + 0x50], edi
jne 0x4fdb8d
mov eax, dword [ebx + 0x4a8]
cmp eax, 2
je 0x4fdb8d
cmp eax, 1
je 0x4fdb8d
mov eax, 0x5cf3f8
call fcn.0047e0c0
test al, al
jne 0x4fdb8d
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
mov byte [esp + 0x9c], al
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], edi
mov byte [esp + 0xb8], al
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 9
call fcn.004614d0
test al, al
je 0x4fdb3e
cmp dword [esp + 0xac], edi
je 0x4fdb3e
lea esi, [esp + 0x14]
call fcn.0040e410
lea ecx, [esp + 0x98]
push ecx
mov eax, esi
mov byte [esp + 0xe4], 0xa
call fcn.00404b10
add esp, 4
push 0
push 0
push 3
mov eax, ebx
mov dword [ebx + 0x490], 7
call fcn.004e9b70
mov edi, dword [esp + 0x14]
push 1
push 0xea6a
lea eax, [ebx + 0x39c]
call fcn.0046f8d0
lea esi, [esp + 0x20]
call fcn.0046fb00
push ecx
mov ecx, esp
mov byte [esp + 0xe4], 0xb
mov dword [esp + 0x20], esp
call fcn.00483910
mov ecx, edi
call fcn.004d59e0
mov byte [esp + 0xe4], 0xa
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x4fdb03
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push ebx
call fcn.004fcab0
push 0
push 1
push 0
mov eax, ebx
mov dword [ebx + 0x508], 2
call fcn.004e9b70
mov ecx, dword [ebx + 0x30]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, ebx
call fcn.004f8e80
lea ecx, [esp + 0x14]
call fcn.00423d60
jmp 0x4fdb51
mov edx, dword [ebx + 0x30]
push 0
push 0x1388
push 5
push edx
call dword [sym.imp.USER32.dll_SetTimer]
lea esi, [esp + 0x98]
call fcn.004f8e30
lea ecx, [esp + 0x20]
call fcn.004231c0
lea ecx, [esp + 0x7c]
call fcn.004231c0
lea ecx, [esp + 0x3c]
call fcn.004231c0
cmp dword [esp + 0x74], 0x10
jb 0x4fdfd2
mov eax, dword [esp + 0x60]
push eax
jmp 0x4fdfca
lea ecx, [esp + 0x18]
push ecx
mov edi, ebx
call fcn.004f8b90
mov esi, dword [esp + 0x18]
cmp esi, 1
je 0x4fdb5d
push 0x5cc9fe
push 0x10
call fcn.0053dd33
xor ecx, ecx
add esp, 8
cmp eax, ecx
je 0x4fdb5d
push ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
push eax
mov dword [eax + 4], esi
mov dword [eax], 0x20
mov edx, dword [ebx + 0x30]
push 0x40b
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4fdb5d
cmp eax, 2
je 0x4fdd6d
cmp eax, 4
je 0x4fdd6d
cmp eax, 6
je 0x4fdd6d
cmp eax, 3
je 0x4fdecf
cmp eax, 8
jne 0x4fdc2b
cmp dword [ebx + 0x4a8], 2
jne 0x4fdc1c
push edi
push 0xb
push 2
mov eax, ebx
call fcn.004e9b70
jmp 0x4fded7
mov dword [ebx + 0x4e8], 0xb
jmp 0x4fded7
cmp eax, 1
jne 0x4fdcf8
mov eax, 0xf
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x40]
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x12
call fcn.004d72e0
add esp, 4
cmp dword [esp + 0x90], edi
jne 0x4fdce6
mov eax, dword [ebx + 0x4a8]
cmp eax, 2
je 0x4fdce6
cmp eax, 1
je 0x4fdce6
push edi
push edi
push 3
mov eax, ebx
mov dword [ebx + 0x490], 7
call fcn.004e9b70
cmp dword [ebx + 0x39c], edi
lea eax, [ebx + 0x39c]
je 0x4fdce6
push 1
push ecx
mov esi, esp
mov dword [esp + 0x24], esp
push 1
push 0xc350
call fcn.0046f8d0
call fcn.0046fb00
call fcn.0048b640
add esp, 8
xor edi, edi
lea ecx, [esp + 0x3c]
call fcn.004231c0
lea ecx, [esp + 0x20]
jmp 0x4fdeb2
cmp eax, 9
jne 0x4fdd22
call fcn.0045c480
cmp al, 1
jne 0x4fdd17
push edi
push 3
push 1
mov eax, ebx
call fcn.004e9b70
jmp 0x4fded7
mov dword [ebx + 0x490], edi
jmp 0x4fded7
cmp eax, edi
jne 0x4fded7
cmp dword [ebx + 0x4a8], edi
jne 0x4fded7
mov eax, dword [esp + 0x58]
test eax, 0x400
je 0x4fdd51
push edi
push 1
push edi
mov eax, ebx
call fcn.004e9b70
jmp 0x4fded7
test eax, 0x800
je 0x4fded7
push edi
push 3
push 1
mov eax, ebx
call fcn.004e9b70
jmp 0x4fded7
mov eax, dword [ebx + 0x4a8]
cmp eax, edi
jne 0x4fdeca
mov edx, dword [ebx + 0x30]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fdd8f
push ebx
call fcn.004f02c0
cmp dword [ebx + 0x4a8], edi
jne 0x4fded7
mov eax, 0xf
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x40]
mov byte [esp + 0xe4], 0xe
call fcn.004d72e0
add esp, 4
cmp dword [esp + 0x50], edi
je 0x4fde90
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [ebx + 0x1fc], ecx
cmp eax, edi
jne 0x4fde12
or eax, 0xffffffff
jmp 0x4fde2a
cmp dword [esp + 0x38], 0x10
mov eax, dword [esp + 0x24]
jae 0x4fde21
lea eax, [esp + 0x24]
push eax
call fcn.00542983
add esp, 4
lea edx, [esp + 0x3c]
push edx
lea esi, [esp + 0x9c]
mov dword [ebx + 0x4b4], eax
call fcn.00404bc0
add esp, 4
mov byte [esp + 0xe0], 0xf
cmp dword [eax + 0x18], 8
jb 0x4fde57
mov eax, dword [eax + 4]
jmp 0x4fde5a
add eax, 4
lea edi, [ebx + 0x4dc]
mov edx, eax
call fcn.00423a40
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 0xe
call fcn.0040eb20
push 0
push ebx
call fcn.004f4670
push 0
mov ecx, ebx
call fcn.004f4930
xor edi, edi
jmp 0x4fdea5
cmp dword [ebx + 0x490], 6
je 0x4fdea5
push edi
push 3
push 1
mov eax, ebx
call fcn.004e9b70
lea ecx, [esp + 0x20]
call fcn.004231c0
lea ecx, [esp + 0x3c]
call fcn.004231c0
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 0
call fcn.004231c0
jmp 0x4fded7
cmp eax, 2
jne 0x4fded7
push 1
push ebx
call fcn.004f6270
mov eax, dword [ebx + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4fdf0a
mov eax, dword [ebx + 0x494]
cmp eax, 3
je 0x4fdf0a
cmp eax, 5
je 0x4fdf0a
mov ecx, dword [ebx + 0x30]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, ebx
call fcn.004f8e80
xor edi, edi
mov esi, 1
cmp dword [ebx + 0x490], esi
jne 0x4fd97a
mov eax, dword [ebx + 0x454]
cmp eax, edi
je 0x4fdf65
mov eax, dword [eax + 0x30]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4fdf65
mov eax, dword [ebx + 0x454]
mov ecx, dword [eax + 0x30]
add eax, 0x30
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4fdf65
cmp dword [ebx + 0x4a8], esi
jne 0x4fd97a
mov dword [ebx + 0x4e8], 9
jmp 0x4fd97a
call fcn.00467180
mov ecx, eax
call fcn.00467410
cmp eax, edi
je 0x4fdf7e
cmp eax, dword [ebx + 0x30]
jne 0x4fdb78
cmp dword [ebx + 0x4a8], 2
jne 0x4fdfbe
call fcn.00424330
call fcn.00424c30
test al, al
jne 0x4fdf9f
push 0xa
push ebx
call fcn.004f26e0
jmp 0x4fdfb2
push edi
push 9
push 2
mov eax, ebx
call fcn.004e9b70
push edi
push ebx
call fcn.004f6270
push ebx
mov dword [ebx + 0x490], edi
call fcn.004efcc0
cmp dword [esp + 0x74], 0x10
jb 0x4fdfd2
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0053c152
add esp, 4
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret 4