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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f891d
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5450d0]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x5450d0]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
and dword [esp + 0x20], 0
and dword [esp + 0x24], 0
mov ebx, ecx
mov ecx, dword [ebx + 0xb8]
sub ecx, dword [ebx + 0xb4]
mov esi, edx
mov edx, eax
sub edx, dword [ebp + 8]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], ecx
cmp ecx, edx
je 0x4e109c
mov edx, dword [ebx + 0x90]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0xb4], ecx
mov dword [ebx + 0xb8], eax
cmp edx, 3
jne 0x4e0919
mov byte [edi], 1
jmp 0x4e109c
mov ecx, dword [ebx]
mov edi, dword [ebp + 8]
add edi, ecx
test edx, edx
jne 0x4e0baf
mov edx, edi
cmp edi, eax
je 0x4e093c
cmp byte [edx], 0xa
je 0x4e0938
inc edx
cmp edx, eax
jne 0x4e092e
cmp edx, eax
jne 0x4e0951
sub eax, dword [ebx + 0xb4]
mov ecx, dword [esp + 0x20]
sub eax, dword [esp + 0x28]
mov dword [esi], ecx
jmp 0x4e10a6
cmp edx, edi
jne 0x4e096b
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x90], 3
mov byte [eax], 1
jmp 0x4e109c
lea eax, [edx - 1]
cmp byte [eax], 0xd
mov dword [esp + 0x14], edx
jne 0x4e097b
mov dword [esp + 0x14], eax
inc edx
mov eax, edx
sub eax, edi
add ecx, eax
mov eax, edx
sub eax, dword [esp + 0x28]
mov dword [esp + 0x18], edi
sub eax, dword [ebx + 0xb4]
mov edi, dword [esp + 0x14]
mov dword [ebx], ecx
push 0x20
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x54]
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], edx
call fcn.00460d4f
pop ecx
push 0xffffffffffffffff
xor esi, esi
push esi
lea edi, [ebx + 0x40]
push eax
mov ecx, edi
mov dword [esp + 0x16c], esi
call fcn.004403b7
or dword [esp + 0x160], 0xffffffff
push esi
push 1
lea ecx, [esp + 0x58]
call fcn.0044046c
push 5
push esi
lea eax, [esp + 0x58]
push eax
mov ecx, edi
call fcn.00451046
push 0x51eca8
mov dword [esp + 0x164], 1
call fcn.00450778
or dword [esp + 0x164], 0xffffffff
pop ecx
push esi
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x18], al
call fcn.0044046c
cmp byte [esp + 0x10], 0
je 0x4e0aa2
mov edi, dword [esp + 0x14]
push 0x20
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x54]
call fcn.00460d4f
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x4e0a42
mov eax, dword [eax + 4]
jmp 0x4e0a45
add eax, 4
push eax
call 0x512a15
pop ecx
push 0
push 1
lea ecx, [esp + 0x58]
mov dword [ebx + 4], eax
call fcn.0044046c
mov edi, dword [esp + 0x14]
push 0xd
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x54]
call fcn.00460d4f
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x5c]
mov dword [esp + 0x16c], 2
call fcn.004403b7
or dword [esp + 0x160], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x58]
call fcn.0044046c
jmp 0x4e0b8f
push 0xffffffffffffffff
push esi
lea ecx, [ebx + 8]
push edi
call fcn.004403b7
lea eax, [esp + 0x40]
push eax
lea eax, [ebx + 8]
call fcn.004490f5
mov dword [esp + 0x28], eax
lea eax, [esp + 0x88]
push eax
lea ecx, [ebx + 8]
call fcn.0044b7af
mov dword [esp + 0x48], eax
lea eax, [esp + 0x90]
push eax
lea eax, [ebx + 8]
call fcn.004490f5
mov ecx, dword [esp + 0x28]
push dword [ecx + 4]
push dword [ecx]
mov ecx, dword [esp + 0x50]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x60]
call fcn.004e1723
add esp, 0x18
push edi
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], esi
call fcn.0044b769
mov edi, dword [esp + 0x14]
push 0x20
lea esi, [esp + 0x1c]
lea ecx, [esp + 0x54]
call fcn.00460d4f
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x24]
mov dword [esp + 0x16c], 3
call fcn.004403b7
or dword [esp + 0x160], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x58]
call fcn.0044046c
push 0x20
lea ecx, [esp + 0x54]
call fcn.00460d4f
pop ecx
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [ebx + 0x40]
mov dword [esp + 0x16c], 4
call fcn.004403b7
or dword [esp + 0x160], 0xffffffff
push esi
push 1
lea ecx, [esp + 0x58]
call fcn.0044046c
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x34]
sub eax, dword [ebp + 8]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x90], 1
cmp dword [ebx + 0x90], 1
jne 0x4e1030
mov esi, edi
cmp edi, eax
jmp 0x4e0bca
cmp byte [esi], 0xa
je 0x4e0bd0
inc esi
cmp esi, eax
mov dword [esp + 0x2c], esi
jne 0x4e0bc2
push 0
lea ecx, [esp + 0x100]
mov dword [esp + 0x118], 0xf
call fcn.00440598
mov dword [esp + 0x160], 5
mov eax, dword [esp + 0x2c]
cmp eax, dword [ebp + 0xc]
je 0x4e100b
cmp dword [ebx + 0x90], 1
jne 0x4e100b
mov dword [esp + 0x1c], esi
cmp edi, esi
je 0x4e0c22
lea eax, [esi - 1]
cmp byte [eax], 0xd
jne 0x4e0c22
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x100]
call fcn.0044b7af
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x100]
mov dword [esp + 0x44], ecx
call fcn.004490f5
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x10c]
push edi
push eax
mov eax, dword [esp + 0x34]
call fcn.004e12cb
inc esi
mov eax, esi
sub eax, edi
add dword [ebx], eax
push 1
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x108]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x1c], 0x3a
call fcn.0044e7dd
mov edi, eax
cmp edi, 0xffffffff
je 0x4e0fe8
push edi
push 0
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x108]
call fcn.00451046
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x138]
mov byte [esp + 0x164], 6
call fcn.004490f5
mov esi, eax
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x138]
call fcn.0044b7af
mov dword [esp + 0x34], eax
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x138]
call fcn.004490f5
push dword [esi + 4]
mov ecx, dword [esp + 0x38]
push dword [esi]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0xb0]
call fcn.004e1723
add esp, 0x18
jmp 0x4e0d53
push edi
lea ecx, [esp + 0x100]
call fcn.0044de7d
cmp byte [eax], 0x20
je 0x4e0d53
push edi
lea ecx, [esp + 0x100]
call fcn.0044de7d
cmp byte [eax], 9
jne 0x4e0d5d
inc edi
cmp edi, dword [esp + 0x110]
jb 0x4e0d2f
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x108]
call fcn.00451046
sub esp, 0x1c
mov byte [esp + 0x17c], 7
lea eax, [esp + 0x134]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
call fcn.00440341
sub esp, 0x1c
mov byte [esp + 0x198], 8
lea eax, [esp + 0x16c]
mov ecx, esp
mov dword [esp + 0x80], esp
push eax
call fcn.00440341
lea esi, [esp + 0xfc]
mov byte [esp + 0x198], 7
call fcn.004e1771
add esp, 0x38
mov esi, eax
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x164], 9
call fcn.00440341
add esi, 0x1c
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x164], 0xa
call fcn.00440341
lea eax, [esp + 0x50]
push eax
add ebx, 0x94
lea edi, [esp + 0xbc]
mov byte [esp + 0x164], 0xb
call fcn.004e1211
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [esp + 0x74]
call fcn.0044046c
push ebx
push esi
lea ecx, [esp + 0x58]
call fcn.0044046c
push ebx
push esi
lea ecx, [esp + 0xe8]
mov byte [esp + 0x168], 7
call fcn.0044046c
push ebx
push esi
lea ecx, [esp + 0xcc]
call fcn.0044046c
push 0x51ec30
lea eax, [esp + 0x138]
call fcn.00450778
pop ecx
test al, al
je 0x4e0e9a
cmp dword [esp + 0x130], 0x10
mov eax, dword [esp + 0x11c]
jae 0x4e0e7f
lea eax, [esp + 0x11c]
push 0xa
push ebx
push eax
call 0x515693
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
jmp 0x4e0f9d
push 0x51ecb0
lea eax, [esp + 0x138]
call fcn.00450778
pop ecx
test al, al
je 0x4e0f9d
cmp dword [esp + 0x130], 0x10
mov eax, dword [esp + 0x11c]
jae 0x4e0ecc
lea eax, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
mov eax, 0x51ecc0
mov esi, eax
mov dl, 0x62
sub edi, eax
movzx eax, byte [esi + edi]
push eax
call fcn.00460c2b
pop ecx
push edx
mov byte [esp + 0x14], al
call fcn.00460c2b
pop ecx
mov cl, byte [esp + 0x10]
cmp al, cl
jne 0x4e0f09
inc esi
mov dl, byte [esi]
cmp dl, bl
jne 0x4e0edf
add dword [esp + 0x14], 6
push 0xa
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1c]
call 0x515693
mov esi, dword [esp + 0x3c]
mov dword [esi + 0x80], eax
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esi + 0x84], edx
cmp eax, dword [esp + 0x14]
je 0x4e10d1
cmp byte [eax], 0x2d
jne 0x4e10d1
lea edi, [eax + 1]
push 0xa
lea eax, [esp + 0x30]
push eax
push edi
call 0x515693
add esp, 0xc
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], edx
cmp dword [esp + 0x2c], edi
je 0x4e10d1
mov edi, dword [esi + 0x80]
mov ecx, eax
mov eax, edx
mov edx, dword [esi + 0x84]
cmp eax, edx
jl 0x4e10d1
jg 0x4e0f8e
cmp ecx, edi
jb 0x4e10d1
sub ecx, edi
sbb eax, edx
add ecx, 1
adc eax, ebx
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov esi, dword [esp + 0x18]
jmp 0x4e0fa9
cmp byte [esi], 0xa
je 0x4e0fae
inc esi
cmp esi, dword [ebp + 0xc]
jne 0x4e0fa3
push ebx
push 1
lea ecx, [esp + 0x120]
mov dword [esp + 0x20], esi
call fcn.0044046c
push ebx
push 1
lea ecx, [esp + 0x13c]
mov byte [esp + 0x168], 5
call fcn.0044046c
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x30]
cmp esi, dword [ebp + 0xc]
jmp 0x4e0bfb
cmp dword [ebx + 0x1c], 0
mov dword [ebx + 0x90], 2
je 0x4e0fff
mov byte [ebx + 0xc0], 1
mov eax, dword [ebx]
mov edi, dword [esp + 0x1c]
mov dword [ebx + 0xbc], eax
sub esi, dword [esp + 0x28]
push 0
sub esi, dword [ebx + 0xb4]
push 1
add dword [esp + 0x2c], esi
lea ecx, [esp + 0x104]
call fcn.0044046c
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x38]
cmp dword [ebx + 0x90], 2
jne 0x4e109c
mov edx, dword [ebx + 0xbc]
sub eax, edi
mov edi, dword [ebx + 0x7c]
mov ecx, eax
mov eax, dword [ebx]
sub eax, edx
add eax, ecx
cdq
cmp edx, edi
jl 0x4e106f
jg 0x4e1058
cmp eax, dword [ebx + 0x78]
jbe 0x4e106f
test edi, edi
jl 0x4e106f
jg 0x4e1064
cmp dword [ebx + 0x78], 0
jb 0x4e106f
mov ecx, dword [ebx + 0xbc]
sub ecx, dword [ebx]
add ecx, dword [ebx + 0x78]
add dword [ebx], ecx
mov eax, dword [ebx]
mov dword [esp + 0x20], ecx
test edi, edi
jl 0x4e109c
jg 0x4e1083
cmp dword [ebx + 0x78], 0
jb 0x4e109c
sub eax, dword [ebx + 0xbc]
cdq
cmp edx, edi
jl 0x4e109c
jg 0x4e1095
cmp eax, dword [ebx + 0x78]
jb 0x4e109c
mov byte [ebx + 0xc0], 1
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call 0x511697
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x90], 3
mov esi, dword [esp + 0x38]
mov byte [eax], 1
mov eax, dword [esp + 0x20]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
push ebx
push 1
lea ecx, [esp + 0x120]
mov dword [esi + 4], eax
call fcn.0044046c
push ebx
push 1
lea ecx, [esp + 0x13c]
call fcn.0044046c
push ebx
push 1
lea ecx, [esp + 0x104]
call fcn.0044046c
jmp 0x4e10a9