Function at 0x4ec930
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52d83f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, ecx
mov dword [esp + 0x80], 0x530160
mov word [esp + 0x84], 0xffff
mov word [esp + 0x86], bp
mov al, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x98]
mov dword [esp + 0xb0], ebp
mov byte [esp + 0x98], al
call fcn.004013e0
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
mov byte [esp + 0xac], 1
mov byte [esp + 0x35], dl
mov byte [esp + 0x3c], 1
call fcn.00434690
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
mov byte [esp + 0x45], cl
lea ecx, [esp + 0x44]
mov byte [esp + 0xac], 2
mov byte [esp + 0x44], al
mov byte [esp + 0x4c], 1
call fcn.00435030
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 3
xor esi, esi
call fcn.004f5840
lea ecx, [esp + 0x6c]
mov byte [esp + 0xac], 4
call fcn.004f5840
mov dl, byte [esp + 0x13]
mov dword [esp + 0x58], ebp
mov byte [esp + 0x54], dl
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
push ebp
push ebp
push ecx
mov byte [esp + 0xb8], 6
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x548208
call fcn.004f58e0
push ecx
mov byte [esp + 0xbc], 7
mov ecx, esp
mov dword [esp + 0x8c], esp
push 6
push 0x548aac
call fcn.004f58e0
mov ecx, 0x5540a8
mov byte [esp + 0xbc], 6
call fcn.004f91a0
push 6
push 0x549c4c
lea ecx, [esp + 0x30]
call fcn.004f58e0
push 6
push 0x549c44
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], 8
call fcn.004f58e0
push 6
push 0x549c4c
lea ecx, [esp + 0x38]
mov byte [esp + 0xb4], 9
call fcn.004f58e0
mov bl, 0xa
mov byte [esp + 0xac], bl
push ebp
push 5
lea ecx, [esp + 0x30]
call fcn.004f5c80
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004f5850
mov ecx, dword [0x5540a8]
call fcn.004fa1d0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549c3c
call fcn.004f58e0
mov ecx, dword [0x5540a8]
call fcn.004fa410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549c34
call fcn.004f58e0
mov ecx, dword [0x5540a8]
call fcn.004fa410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549c2c
call fcn.004f58e0
mov ecx, dword [0x5540a8]
call fcn.004fa410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549c24
call fcn.004f58e0
mov ecx, dword [0x5540a8]
call fcn.004fa410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549c1c
call fcn.004f58e0
mov ecx, dword [0x5540a8]
call fcn.004fa410
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x549c14
call fcn.004f58e0
mov ecx, dword [0x5540a8]
call fcn.004fa410
lea ecx, [esp + 0x80]
push ecx
mov ecx, dword [0x5540a8]
call fcn.004fa550
cmp ax, 0xffff
mov dword [esp + 0x20], eax
je 0x4ed00f
mov dl, byte [esp + 0x20]
lea ecx, [esp + 0x28]
inc dl
push edx
push 5
call fcn.004f5c80
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
call fcn.004f5850
mov ecx, dword [0x5540b4]
call fcn.004ff740
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x549c0c
call fcn.004f58e0
mov ecx, dword [0x5540b4]
call fcn.004ff8c0
movsx eax, word [esp + 0x20]
inc eax
cmp eax, 6
ja case.default.0x4ecc02
jmp dword [eax*4 + 0x4ed344]
mov eax, dword [esp + 0x38]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x40]
call fcn.00433bb0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x8c]
push eax
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00433ed0
push 7
push 0x549c04
lea ecx, [esp + 0x2c]
call fcn.004f5de0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
push 4
call fcn.004f5c80
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004d3100
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push ebp
call fcn.004f5870
lea edx, [esp + 0x74]
lea eax, [esp + 0x2c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
mov byte [esp + 0xc0], 0xb
call fcn.004f5850
mov ecx, edi
mov byte [esp + 0xbc], bl
call fcn.004d5e20
test al, al
je 0x4ecda5
lea ecx, [esp + 0x44]
lea edx, [esp + 0x34]
push ecx
push edx
push ecx
lea eax, [esp + 0x78]
mov ecx, esp
mov dword [esp + 0x84], esp
push eax
call fcn.004f5850
mov ecx, edi
call fcn.004eaaa0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
mov edx, dword [edx]
cmp eax, ecx
mov dword [esp + 0x1c], edx
je 0x4ecd98
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0xc]
push ecx
push 5
lea ecx, [esp + 0x34]
call fcn.004f5c80
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
mov al, byte [edx + 0xd]
push eax
push 5
call fcn.004f5c80
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x7c], esp
push edx
call fcn.004f5850
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 0xc
call fcn.00433a60
sub esp, 0x10
add eax, 4
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.0041fc70
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
mov byte [esp + 0xc8], 0xd
call fcn.004f5850
mov ecx, dword [0x5540b4]
mov byte [esp + 0xc4], bl
call fcn.004ffc60
lea ecx, [esp + 0x18]
call fcn.00433cf0
lea ecx, [esp + 0x1c]
call fcn.00434000
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x4eccee
mov ecx, dword [0x5540b4]
call fcn.004ffe70
mov esi, eax
cmp si, bp
jne 0x4ecba6
jmp 0x4ecaa9
push 7
push 0x549bfc
lea ecx, [esp + 0x2c]
call fcn.004f5de0
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
call fcn.004d3100
lea edx, [esp + 0x54]
lea eax, [esp + 0x24]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
call fcn.004f5850
mov ecx, edi
call fcn.004ea890
test al, al
je 0x4ecda5
mov eax, dword [esp + 0x38]
mov byte [esp + 0x74], 0
mov edx, dword [esp + 0x58]
cmp edx, ebp
jne 0x4ece05
xor ecx, ecx
jmp 0x4ece0e
mov ecx, dword [esp + 0x5c]
sub ecx, edx
sar ecx, 2
mov esi, dword [esp + 0x74]
and esi, 0xff
cmp esi, ecx
jae 0x4ecd98
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x40]
call fcn.00433bb0
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x68]
push eax
mov ecx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.00433ed0
mov eax, dword [esp + 0x58]
push 3
lea ecx, [eax + esi*4]
call fcn.004f5b60
cmp al, 0x7f
je 0x4ed002
lea ecx, [esp + 0x44]
lea edx, [esp + 0x34]
push ecx
push edx
push esi
lea ecx, [esp + 0x60]
call fcn.0041fe70
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
call fcn.004f5850
mov ecx, edi
call fcn.004eaaa0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [edx]
cmp ecx, eax
mov dword [esp + 0x1c], edx
je 0x4ed006
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0xc]
push ecx
push 5
lea ecx, [esp + 0x34]
call fcn.004f5c80
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x30]
mov al, byte [edx + 0xd]
push eax
push 5
call fcn.004f5c80
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x74], esp
push edx
call fcn.004f5850
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 0x10
call fcn.00433a60
sub esp, 0x10
add eax, 4
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call fcn.0041fc70
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x7c], esp
push eax
mov byte [esp + 0xc8], 0x11
call fcn.004f5850
mov ecx, dword [0x5540b4]
mov byte [esp + 0xc4], bl
call fcn.004ffc60
lea ecx, [esp + 0x7c]
call fcn.005144a2
mov eax, dword [esp + 0x18]
mov edx, dword [0x554060]
mov byte [esp + 0xac], 0xe
mov ecx, dword [eax + 8]
cmp ecx, edx
je 0x4ecf5e
push ecx
call fcn.00434a40
add esp, 4
mov dword [esp + 0x18], eax
jmp 0x4ecf7d
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x4ecf74
mov eax, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x4ecf66
cmp dword [eax + 8], ecx
je 0x4ecf7d
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xac], bl
call fcn.0051453e
lea ecx, [esp + 0x14]
call fcn.005144a2
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x55405c]
mov byte [esp + 0xac], 0xf
mov eax, dword [ecx + 8]
cmp eax, edx
je 0x4ecfba
push eax
call fcn.004353e0
add esp, 4
jmp 0x4ecfd5
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 8]
jne 0x4ecfd0
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x4ecfc2
cmp dword [ecx + 8], eax
je 0x4ecfd9
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], bl
call fcn.0051453e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jne 0x4ecea5
inc byte [esp + 0x74]
jmp 0x4ecdf9
mov eax, dword [esp + 0x38]
inc byte [esp + 0x74]
jmp 0x4ecdf9
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 9
call fcn.004f5980
lea ecx, [esp + 0x2c]
mov byte [esp + 0xac], 8
call fcn.004f5980
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 6
call fcn.004f5980
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
cmp esi, eax
mov byte [esp + 0xac], 5
mov edi, eax
je 0x4ed06a
mov ecx, esi
call fcn.004f5980
add esi, 4
cmp esi, edi
jne 0x4ed058
mov esi, dword [esp + 0x58]
push esi
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov byte [esp + 0xac], 4
call fcn.004f5980
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 3
call fcn.004f5980
mov eax, dword [esp + 0x48]
mov byte [esp + 0xac], 2
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x50]
call fcn.00433ed0
mov edx, dword [esp + 0x48]
push edx
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ebp
call fcn.005144a2
mov eax, dword [0x554058]
dec eax
mov dword [0x554058], eax
jne 0x4ed0fe
mov eax, dword [0x55405c]
push eax
call fcn.00514140
add esp, 4
mov dword [0x55405c], ebp
lea ecx, [esp + 0x14]
call fcn.0051453e
mov eax, dword [esp + 0x38]
mov byte [esp + 0xac], 1
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x40]
call fcn.00433bb0
mov edx, dword [esp + 0x38]
push edx
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
call fcn.005144a2
mov eax, dword [0x554054]
dec eax
mov dword [0x554054], eax
jne 0x4ed164
mov eax, dword [0x554060]
push eax
call fcn.00514140
add esp, 4
mov dword [0x554060], ebp
lea ecx, [esp + 0x14]
call fcn.0051453e
mov ecx, dword [esp + 0x98]
cmp ecx, ebp
je 0x4ed19a
mov al, byte [ecx - 1]
test al, al
je 0x4ed190
cmp al, 0xff
je 0x4ed190
dec al
mov byte [ecx - 1], al
xor ax, ax
jmp 0x4ed32b
dec ecx
push ecx
call fcn.00514140
add esp, 4
xor ax, ax
jmp 0x4ed32b
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 9
call fcn.004f5980
lea ecx, [esp + 0x2c]
mov byte [esp + 0xac], 8
call fcn.004f5980
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 6
call fcn.004f5980
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
cmp esi, eax
mov byte [esp + 0xac], 5
mov edi, eax
je 0x4ed1fd
mov ecx, esi
call fcn.004f5980
add esi, 4
cmp esi, edi
jne 0x4ed1eb
mov esi, dword [esp + 0x58]
push esi
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x6c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov byte [esp + 0xac], 4
call fcn.004f5980
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 3
call fcn.004f5980
mov eax, dword [esp + 0x48]
mov byte [esp + 0xac], 2
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x50]
call fcn.00433ed0
mov edx, dword [esp + 0x48]
push edx
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x50], ebp
call fcn.005144a2
mov eax, dword [0x554058]
dec eax
mov dword [0x554058], eax
jne 0x4ed291
mov eax, dword [0x55405c]
push eax
call fcn.00514140
add esp, 4
mov dword [0x55405c], ebp
lea ecx, [esp + 0x14]
call fcn.0051453e
mov eax, dword [esp + 0x38]
mov byte [esp + 0xac], 1
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x40]
call fcn.00433bb0
mov edx, dword [esp + 0x38]
push edx
call fcn.00514140
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
call fcn.005144a2
mov eax, dword [0x554054]
dec eax
mov dword [0x554054], eax
jne 0x4ed2f7
mov eax, dword [0x554060]
push eax
call fcn.00514140
add esp, 4
mov dword [0x554060], ebp
lea ecx, [esp + 0x14]
call fcn.0051453e
mov ecx, dword [esp + 0x98]
cmp ecx, ebp
je 0x4ed327
mov al, byte [ecx - 1]
test al, al
je 0x4ed31d
cmp al, 0xff
je 0x4ed31d
dec al
mov byte [ecx - 1], al
jmp 0x4ed327
dec ecx
push ecx
call fcn.00514140
add esp, 4
mov ax, 1
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret