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

Disassembly:
push 0xffffffffffffffff
push 0x4a63b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x60]
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x110], ebx
call fcn.004b3b78
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x110], 1
call fcn.004b3b78
lea ecx, [esp + 0x6c]
mov byte [esp + 0x10c], 2
call fcn.004af1d8
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call fcn.0050d46e
mov al, byte [esp + 0x3b]
mov edx, dword [esp + 0x114]
mov byte [esp + 0x28], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x10c], 4
push ecx
push edx
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [0x4b4618]
lea ecx, [esp + 0x5c]
push 1
lea edx, [esp + 0x2c]
push ecx
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0x118], 5
call fcn.004af268
and eax, 0xff
mov byte [esp + 0x10c], 4
mov esi, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x482e16
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x482e0d
cmp al, 0xff
je 0x482e0d
dec al
mov byte [ecx], al
jmp 0x482e16
push ecx
call fcn.0050d474
add esp, 4
cmp esi, ebx
jne 0x482eb3
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call fcn.0050d468
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 8
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 7
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 6
cmp eax, ebx
je 0x482e85
lea ecx, [esp + 0x9c]
call fcn.00494e58
cmp dword [esp + 0xc8], ebx
jne 0x482e70
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x483010
lea ecx, [esp + 0x6c]
call fcn.00494dc8
cmp dword [esp + 0x98], ebx
jne 0x482e9c
jmp 0x483010
lea ecx, [esp + 0x5c]
call fcn.004b4318
cmp eax, 7
je 0x482f5a
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call fcn.0050d468
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0xb
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 0xa
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 9
cmp eax, ebx
je 0x482f2c
lea ecx, [esp + 0x9c]
call fcn.00494e58
cmp dword [esp + 0xc8], ebx
jne 0x482f17
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x483010
lea ecx, [esp + 0x6c]
call fcn.00494dc8
cmp dword [esp + 0x98], ebx
jne 0x482f43
jmp 0x483010
push 0x4d0c90
lea ecx, [esp + 0x60]
call fcn.004b5078
push eax
lea ecx, [esp + 0x18]
call fcn.004b4218
lea ecx, [esp + 0x14]
call fcn.004b4318
cmp eax, 7
je 0x48304d
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call fcn.0050d468
push 1
lea ecx, [esp + 0xf4]
mov byte [esp + 0x110], 0xe
call dword [fcn.004b461c]
push 1
lea ecx, [esp + 0xd0]
mov byte [esp + 0x110], 0xd
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0x10c], 0xc
cmp eax, ebx
je 0x482feb
lea ecx, [esp + 0x9c]
call fcn.00494e58
cmp dword [esp + 0xc8], ebx
jne 0x482fd6
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x483010
lea ecx, [esp + 0x6c]
call fcn.00494dc8
cmp dword [esp + 0x98], ebx
jne 0x482ffe
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 1
call fcn.004b4098
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call fcn.004b4098
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10c], 0xffffffff
call fcn.004b4098
xor eax, eax
jmp 0x483668
mov esi, dword [esp + 0x118]
cmp dword [esi + 0x24], ebx
jne 0x483073
push 0x4d0e14
lea ecx, [esp + 0x18]
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x9b4]
add ebp, 0xec
push ebp
push 0x4ce1a8
push eax
call dword [fcn.004b46ec]
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x4d0dd8
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 4], eax
push 0x4d0b20
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x2c], eax
push 0x4d0eac
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x30], eax
push 0x4d0ddc
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x38], eax
push 0x4d0df4
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x3c], eax
push 0x4d0de4
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x40], eax
push 0x4d0e18
call fcn.004b5078
push eax
call fcn.00477948
lea edi, [esi + 0x18]
mov dword [esi + 0x20], eax
push 0x4d85a8
mov eax, dword [edi]
push eax
call dword [fcn.004b46f0]
add esp, 0xc
test eax, eax
jne 0x483197
push 0x4d0e00
lea ecx, [esp + 0x18]
call fcn.004b5078
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00477a28
add esp, 8
push eax
mov ecx, edi
mov byte [esp + 0x110], 0xf
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 4
call fcn.0050d468
push 0x4d0e08
lea ecx, [esp + 0x18]
call fcn.004b5078
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00477a28
add esp, 8
push eax
lea ecx, [esi + 0x14]
mov byte [esp + 0x110], 0x10
call fcn.0050d5e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x10c], 4
call fcn.0050d468
push 0x4d0ea8
lea ecx, [esp + 0x60]
mov dword [esi + 0x4c], ebx
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x5c]
mov dword [esi + 0x54], eax
push 0x4d0ea0
push 0x4d0c50
call fcn.004b5078
mov ecx, eax
call fcn.004b5078
push eax
lea ecx, [esp + 0x18]
call fcn.004b4218
lea ecx, [esp + 0x14]
call fcn.004b4318
cmp eax, 6
jne 0x483375
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.004b4e58
test eax, eax
jbe 0x483375
push ebp
lea ecx, [esp + 0x18]
call fcn.004b4f08
push eax
lea ecx, [esp + 0x40]
call fcn.004b4218
push 0x4d0bd0
lea ecx, [esp + 0x40]
call fcn.004b5078
push eax
call fcn.00477948
mov ecx, dword [0x4de8b0]
add esp, 4
mov ebx, eax
mov edx, dword [ecx + 0xf90]
test edx, edx
jne 0x48327c
xor eax, eax
jmp 0x483287
mov eax, dword [ecx + 0xf94]
sub eax, edx
sar eax, 2
cmp ebx, eax
jl 0x4832d0
mov esi, ebx
sub esi, eax
inc esi
push 0x5c
call fcn.0050d486
mov edi, eax
mov ecx, 0x17
xor eax, eax
mov dword [esp + 0x14], edi
rep stosd dword es:[edi], eax
mov eax, dword [0x4de8b0]
add esp, 4
mov edx, dword [eax + 0xf94]
lea ecx, [eax + 0xf8c]
lea eax, [esp + 0x10]
push eax
push 1
push edx
call fcn.004e0e18
dec esi
jne 0x483290
mov ecx, dword [0x4de8b0]
mov eax, dword [ecx + 0xf90]
push 0x4d0e94
lea ecx, [esp + 0x40]
mov esi, dword [eax + ebx*4]
mov dword [esi], 1
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x48], eax
push 0x4d0c24
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x3c], eax
push 0x4d0b08
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x28], eax
push 0x4d0e88
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esi + 0x4c], eax
push 0x4d0c34
call fcn.004b5078
push eax
call fcn.00477948
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esi + 0x54], eax
inc ebp
call fcn.004b4e58
cmp ebp, eax
jb 0x48323b
xor ebx, ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x10c], 3
call fcn.0050d468
mov eax, dword [esp + 0xf4]
mov byte [esp + 0x10c], 0x11
cmp eax, ebx
je 0x4833b6
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4833ad
cmp al, 0xff
je 0x4833ad
dec al
mov byte [ecx], al
jmp 0x4833b6
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xf4], ebx
cmp eax, ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
je 0x4833f3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4833ea
cmp al, 0xff
je 0x4833ea
dec al
mov byte [ecx], al
jmp 0x4833f3
push ecx
call fcn.0050d474
add esp, 4
mov eax, dword [esp + 0xc8]
mov dword [esp + 0xd0], ebx
cmp eax, ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
je 0x483535
mov ecx, dword [esp + 0xa8]
push 1
mov eax, ecx
add ecx, 0x20
mov dword [esp + 0xac], ecx
lea ecx, [eax + 0xc]
call dword [fcn.004b461c]
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0xc8], eax
je 0x48345c
mov ecx, dword [esp + 0xa8]
mov eax, dword [esp + 0xa4]
cmp ecx, eax
jne 0x483528
mov eax, dword [esp + 0xac]
mov ecx, eax
add eax, 4
mov dword [esp + 0xac], eax
mov ecx, dword [ecx]
push ecx
call fcn.0050d474
mov eax, dword [esp + 0xcc]
add esp, 4
cmp eax, ebx
jne 0x4834e8
lea ecx, [esp + 0x28]
call fcn.004952b8
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0xa8], edx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
push edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xc0], esi
call fcn.0050d474
add esp, 4
jmp 0x483528
mov eax, dword [esp + 0xac]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x54]
call fcn.004952c8
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], eax
cmp dword [esp + 0xc8], ebx
jne 0x483417
mov eax, dword [esp + 0x98]
mov byte [esp + 0x10c], 2
cmp eax, ebx
je 0x48362d
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x98]
add ecx, 4
dec eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], eax
je 0x483572
cmp ecx, dword [esp + 0x74]
jne 0x483620
mov ecx, dword [esp + 0x7c]
mov eax, ecx
add ecx, 4
mov dword [esp + 0x7c], ecx
mov eax, dword [eax]
push eax
call fcn.0050d474
mov eax, dword [esp + 0x9c]
add esp, 4
cmp eax, ebx
jne 0x4835ef
lea ecx, [esp + 0x4c]
call fcn.004952b8
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x78], edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x70], eax
push edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x90], esi
call fcn.0050d474
add esp, 4
jmp 0x483620
mov eax, dword [esp + 0x7c]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x30]
call fcn.004952c8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
cmp dword [esp + 0x98], ebx
jne 0x48354c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x10c], 1
call fcn.004b4098
lea ecx, [esp + 0x14]
mov byte [esp + 0x10c], 0
call fcn.004b4098
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10c], 0xffffffff
call fcn.004b4098
mov eax, 1
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret 8