Function at 0x4e4d10
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x53112c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
lea eax, [ecx + 4]
push ebx
push ebp
mov dword [esp + 0x18], eax
push esi
add eax, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push eax
mov dword [esp + 0x28], ecx
call edi
lea ecx, [esp + 0x30]
mov dword [esp + 0xd4], 0
call fcn.004608a0
mov eax, dword [esp + 0xe0]
test eax, eax
je 0x4e4d9f
mov ebp, dword [esp + 0xdc]
lea esi, [ebp + 0xc]
mov dword [esp + 0x10], esi
lea eax, [esi + 8]
push eax
call edi
lea ecx, [ebp + 0x34]
mov byte [esp + 0xd4], 2
push ecx
lea ecx, [esp + 0x34]
call fcn.00461150
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0xd4], 1
call dword [edx + 0x14]
jmp 0x4e4de1
mov ebx, dword [esp + 0xdc]
lea esi, [ebx + 0xc]
mov dword [esp + 0x10], esi
lea eax, [esi + 8]
push eax
call edi
add ebx, 0xd0
lea ecx, [esp + 0x30]
push ebx
mov byte [esp + 0xd8], 3
call fcn.00461150
mov edx, dword [esi]
mov ecx, esi
mov byte [esp + 0xd4], 1
call dword [edx + 0x14]
mov ebp, dword [esp + 0xdc]
lea eax, [esi + 8]
push eax
call edi
mov edx, dword [esi]
mov ebx, dword [ebp + 0x21c]
mov ecx, esi
call dword [edx + 0x14]
mov ecx, dword [esp + 0x24]
and ebx, 0xffff0000
xor eax, eax
cmp ebx, 0x10000
sete al
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x30]
neg eax
sbb eax, eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4e4f0d
lea edx, [esp + 0x18]
lea eax, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [edx + 0x24]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
call fcn.00507368
mov ecx, dword [esp + 0x18]
call fcn.004e0360
test eax, eax
jne 0x4e4f03
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
call fcn.004df7c0
test eax, eax
je 0x4e4f03
mov ecx, dword [esp + 0x18]
call fcn.004def80
mov ebx, eax
test ebx, ebx
je 0x4e5005
lea ebp, [ebx + 0xc]
lea ecx, [ebp + 8]
push ecx
call edi
mov edx, dword [ebx + 0x248]
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x10], edx
call dword [eax + 0x14]
mov eax, dword [esp + 0xe4]
test eax, eax
jne 0x4e4eb3
mov ecx, 0x571fb8
call fcn.00481d10
test eax, eax
je 0x4e4efa
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4e4efa
mov eax, dword [esp + 0x10]
cmp eax, 0x10001
je 0x4e4efa
and eax, 0xffff0000
cmp eax, 0x20000
je 0x4e4efa
lea ecx, [ebp + 8]
push ecx
call edi
mov edx, dword [ebx + 0x21c]
mov eax, dword [ebp]
mov ecx, ebp
mov dword [esp + 0x10], edx
call dword [eax + 0x14]
mov eax, dword [esp + 0x10]
and eax, 0xffff0000
cmp eax, 0x10000
je 0x4e4f77
mov ebp, dword [esp + 0xdc]
xor ebx, ebx
cmp dword [esp + 0x28], ebx
jne 0x4e4e22
cmp dword [esp + 0xe4], ebx
je 0x4e516f
lea ecx, [esp + 0x94]
mov byte [esp + 0xd4], 0x12
call fcn.00406c60
lea ecx, [esp + 0x90]
mov byte [esp + 0xd4], 0x11
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0x10
call fcn.00507d3a
lea ecx, [esp + 0x88]
mov byte [esp + 0xd4], 0xf
call fcn.00507d3a
mov byte [esp + 0xd4], 0xe
jmp 0x4e5418
mov ecx, dword [0x569c90]
mov dword [esp + 0x14], ecx
lea ebp, [ebx + 0xc]
mov eax, ebp
mov dword [esp + 0x10], eax
add eax, 8
push eax
call edi
lea edx, [ebx + 0x34]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0xd8], 5
call fcn.004d1040
mov ecx, ebp
mov byte [esp + 0xd4], 4
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, 0x5726d0
call fcn.004ab190
lea edx, [ebp + 8]
push edx
call edi
mov dword [ebx + 0x37c], 0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x14]
push 0
push 2
push 0x10007
mov ecx, ebx
call fcn.004d1ed0
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 1
call fcn.00507d3a
mov ebp, dword [esp + 0xdc]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0x28]
push ebx
push ebp
call fcn.004e4a40
mov edx, dword [0x569c90]
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x1c]
push 0x140f
push eax
mov byte [esp + 0xdc], 6
call fcn.005054ef
add esp, 8
lea ecx, [esi + 8]
push ecx
call edi
mov edx, dword [esi]
mov edi, dword [ebp + 0x21c]
mov ecx, esi
call dword [edx + 0x14]
and edi, 0xfff
cmp edi, 0x16
jne 0x4e50b8
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00499240
add esp, 8
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov bl, 7
push eax
push edx
mov byte [esp + 0xe0], bl
call fcn.00507f69
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xd8], 8
call fcn.00507e73
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], bl
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov byte [esp + 0xd4], 6
call fcn.00507d3a
mov eax, dword [esp + 0x1c]
push 0
push 1
push eax
mov ecx, ebp
call fcn.004d2190
mov ecx, dword [esp + 0x18]
call fcn.004df040
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0xd4], 1
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0xd4], 0xd
call fcn.00406c60
lea ecx, [esp + 0x90]
mov byte [esp + 0xd4], 0xc
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0xb
call fcn.00507d3a
lea ecx, [esp + 0x88]
mov byte [esp + 0xd4], 0xa
call fcn.00507d3a
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd4], 9
call fcn.00404e10
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0
call fcn.00404d90
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xd4], 0xffffffff
mov edx, dword [ecx]
call dword [edx + 0x14]
jmp 0x4e549c
mov eax, dword [esp + 0xac]
cmp eax, 1
je 0x4e5185
cmp eax, 2
je 0x4e5185
cmp eax, 8
jne 0x4e51e8
mov eax, dword [esp + 0x48]
push 0x170
dec eax
je 0x4e51be
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x14
je 0x4e5391
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00428670
jmp 0x4e5393
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x13
je 0x4e5263
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.004367a0
jmp 0x4e5265
cmp eax, ebx
jne 0x4e52ba
mov eax, dword [esp + 0x48]
sub eax, ebx
je 0x4e5288
dec eax
je 0x4e5238
dec eax
jne 0x4e53c0
push 0x138
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x17
je 0x4e5344
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.0044d150
jmp 0x4e5346
push 0x170
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x16
je 0x4e5263
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.004367a0
jmp 0x4e5265
xor eax, eax
lea edx, [esi + 8]
mov byte [esp + 0xd4], 1
push edx
mov ebp, eax
call edi
mov eax, dword [esp + 0xdc]
mov dword [eax + 0x4c], 1
jmp 0x4e53b1
push 0x170
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x15
je 0x4e5391
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00428670
jmp 0x4e5393
cmp eax, 3
jne 0x4e52f1
push 0x198
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x18
je 0x4e5391
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.004836a0
jmp 0x4e5393
cmp eax, 4
je 0x4e52ff
cmp eax, 5
jne 0x4e53c0
mov eax, dword [esp + 0x48]
cmp eax, ebx
jl 0x4e53c0
cmp eax, 1
jle 0x4e5366
cmp eax, 2
jne 0x4e53c0
push 0x138
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x1a
je 0x4e5344
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.0044d150
jmp 0x4e5346
xor eax, eax
lea edx, [esi + 8]
mov byte [esp + 0xd4], 1
push edx
mov ebp, eax
call edi
mov eax, dword [esp + 0xdc]
mov dword [eax + 0x4c], 2
jmp 0x4e53b1
push 0x138
call fcn.0050c4a3
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0xd4], 0x19
je 0x4e5391
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00444a10
jmp 0x4e5393
xor eax, eax
lea edx, [esi + 8]
mov ebp, eax
push edx
mov byte [esp + 0xd8], 1
call edi
mov eax, dword [esp + 0xdc]
mov dword [eax + 0x4c], 0
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
test ebp, ebp
jne 0x4e544a
lea ecx, [esp + 0x94]
mov byte [esp + 0xd4], 0x1f
call fcn.00406c60
lea ecx, [esp + 0x90]
mov byte [esp + 0xd4], 0x1e
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 0x1d
call fcn.00507d3a
lea ecx, [esp + 0x88]
mov byte [esp + 0xd4], 0x1c
call fcn.00507d3a
mov byte [esp + 0xd4], 0x1b
lea ecx, [esp + 0x6c]
call fcn.00404e10
lea ecx, [esp + 0x34]
mov byte [esp + 0xd4], 0
call fcn.00404d90
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xd4], 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0x14]
xor eax, eax
jmp 0x4e549e
mov esi, dword [esp + 0x24]
push ebp
mov ecx, esi
call fcn.004e4060
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xdc]
push ebp
push ecx
push edx
mov ecx, esi
call fcn.004e4a40
mov ecx, ebp
call fcn.004df040
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0xd4], 0
call fcn.00404c90
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xd4], 0xffffffff
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, esi
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret 0xc