Function at 0x4c5830
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x52dcdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x178]
push edi
push 1
lea eax, [esp + 0x24]
push 1
xor ebp, ebp
push eax
push esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], ebp
call fcn.004ae770
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x18], ebx
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c5ccb
lea edi, [esi + 0xc]
lea edx, [edi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x394], ebp
jne 0x4c58b2
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4c58b2
cmp eax, 0x10002
jne 0x4c58b7
mov ebp, 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
test ebp, ebp
je 0x4c58cc
mov eax, 0x30004
jmp 0x4c5ccd
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004a5480
mov edx, dword [0x569c90]
mov dword [esp + 0x174], 0
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x174], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4c5ca6
mov ebx, dword [esp + 0x20]
lea ecx, [edi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x394]
test eax, eax
jne 0x4c5934
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4c5934
cmp eax, 0x10002
je 0x4c5934
xor ebp, ebp
jmp 0x4c5939
mov ebp, 1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x14]
test ebp, ebp
jne 0x4c5e12
push 0xa
lea ecx, [esp + 0x18]
call fcn.00508201
mov ebp, eax
lea ecx, [esp + 0x14]
test ebp, ebp
jl 0x4c599a
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00505091
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x178], 2
call fcn.00507e73
lea ecx, [esp + 0x20]
mov byte [esp + 0x174], 1
call fcn.00507d3a
inc ebp
lea ecx, [esp + 0x14]
push ebp
push 0
call fcn.00504bda
jmp 0x4c59ad
push ecx
lea ecx, [esp + 0x14]
call fcn.00507e73
lea ecx, [esp + 0x14]
call fcn.00507cc5
push 0xa
lea ecx, [esp + 0x14]
call fcn.0050558b
push 0xd
lea ecx, [esp + 0x14]
call fcn.0050558b
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x4c5c93
lea eax, [edi + 8]
mov dword [esp + 0x18], edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [esi + 0x30]
mov byte [esp + 0x174], 3
call fcn.00405370
mov edx, dword [edi]
mov ecx, edi
mov ebp, eax
mov byte [esp + 0x174], 1
call dword [edx + 0x14]
test ebp, ebp
jne 0x4c5b35
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [edi]
mov ebp, dword [esi + 0xb0]
mov ecx, edi
call dword [edx + 0x14]
cmp ebp, 4
je 0x4c5a2a
cmp ebp, 5
jne 0x4c5a47
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00507aaf
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x44]
jmp 0x4c5b4d
lea ecx, [esp + 0xd0]
call fcn.004608a0
lea eax, [esp + 0xd0]
mov ecx, ebx
push eax
mov byte [esp + 0x178], 4
call fcn.004e2f70
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [esp + 0x38]
push ebx
push esi
call fcn.004ab320
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0xd4]
push 0x56e1f4
push edx
push eax
call fcn.00409ba0
add esp, 0x10
lea ecx, [esp + 0x134]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x140]
mov byte [esp + 0x174], 0xa
call fcn.00507d3a
lea ecx, [esp + 0x134]
mov byte [esp + 0x174], 9
call fcn.00507d3a
lea ecx, [esp + 0x130]
mov byte [esp + 0x174], 8
call fcn.00507d3a
lea ecx, [esp + 0x12c]
mov byte [esp + 0x174], 7
call fcn.00507d3a
lea ecx, [esp + 0x128]
mov byte [esp + 0x174], 6
call fcn.00507d3a
lea ecx, [esp + 0x10c]
mov byte [esp + 0x174], 5
call fcn.00404e10
lea ecx, [esp + 0xd4]
mov byte [esp + 0x174], 1
call fcn.00404d90
jmp 0x4c5b51
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00507aaf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x40]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x34]
call fcn.004608a0
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 8]
push ecx
mov dword [esp + 0x28], edi
call ebp
lea edx, [esi + 0x34]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x178], 0xc
call fcn.00461150
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x174], 0xb
call dword [eax + 0x14]
mov eax, dword [0x569c90]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x17c], 0xe
call fcn.004ae740
push eax
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.00507aaf
call fcn.0040e680
add esp, 0x10
test eax, eax
je 0x4c5c0e
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.004afda0
mov eax, dword [eax]
push 0
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x3c]
mov byte [esp + 0x17c], 0xf
push edx
push eax
call fcn.00409ba0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x174], 0xe
call fcn.00507d3a
mov ecx, dword [esp + 0x18]
and ecx, 0xffff0000
cmp ecx, 0x10000
jne 0x4c5ce8
lea edx, [edi + 8]
push edx
call ebp
mov eax, dword [esi + 0x394]
test eax, eax
jne 0x4c5c4c
mov eax, dword [esi + 0x248]
cmp eax, 0x20003
je 0x4c5c4c
cmp eax, 0x10002
je 0x4c5c4c
xor ebp, ebp
jmp 0x4c5c51
mov ebp, 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 0xd
call fcn.00507d3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x174], 0xb
call fcn.00507d3a
test ebp, ebp
jne 0x4c5da0
lea ecx, [esp + 0x34]
mov byte [esp + 0x174], 1
call fcn.00404c90
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4c5908
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.00507d3a
mov eax, ebx
mov ecx, dword [esp + 0x16c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x168
ret 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x174], 0xd
call fcn.00507d3a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x174], 0xb
call fcn.00507d3a
lea edx, [esp + 0x98]
mov dword [esp + 0x24], edx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x174], 0x15
call fcn.00507d3a
lea ecx, [esp + 0x98]
mov byte [esp + 0x174], 0x14
call fcn.00507d3a
lea ecx, [esp + 0x94]
mov byte [esp + 0x174], 0x13
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0x174], 0x12
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0x174], 0x11
call fcn.00507d3a
lea ecx, [esp + 0x70]
mov byte [esp + 0x174], 0x10
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0x174], 1
call fcn.00404d90
jmp 0x4c5ca2
lea ecx, [esp + 0x98]
mov byte [esp + 0x174], 0x1a
call fcn.00406c60
lea ecx, [esp + 0x94]
mov byte [esp + 0x174], 0x19
call fcn.00507d3a
lea ecx, [esp + 0x90]
mov byte [esp + 0x174], 0x18
call fcn.00507d3a
lea ecx, [esp + 0x8c]
mov byte [esp + 0x174], 0x17
call fcn.00507d3a
lea ecx, [esp + 0x70]
mov byte [esp + 0x174], 0x16
call fcn.00404e10
lea ecx, [esp + 0x38]
mov byte [esp + 0x174], 1
call fcn.00404d90
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.00507d3a
lea ecx, [esp + 0x14]
mov dword [esp + 0x174], 0xffffffff
call fcn.00507d3a
mov eax, 0x30004
jmp 0x4c5ccd