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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cf6c1
push eax
mov dword fs:[0], esp
sub esp, 0x264
push ebx
push ebp
xor ebx, ebx
push esi
push edi
cmp dword [0x4ffb3c], ebx
jne 0x45076e
push 0x4ffb38
mov dword [0x4ffb38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x4ffb3c], 5
jne 0x450784
mov byte [esp + 0x17], 1
cmp dword [0x4ffb40], ebx
je 0x450788
mov byte [esp + 0x17], bl
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, 0x41
mov ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
xor edx, edx
mov word [esp + 0x20], ax
mov eax, 0x3a
mov word [esp + 0x24], dx
mov word [esp + 0x22], ax
push ecx
lea edx, [esp + 0x68]
cmp byte [esp + 0x1b], bl
je 0x4507c5
push str.___c:
jmp 0x4507ca
push str.Global___c:
call fcn.00407540
add esp, 8
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00450570
mov dword [esp + 0x27c], ebx
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x4507f5
mov eax, dword [ecx + 4]
jmp 0x4507f7
xor eax, eax
cmp eax, ebx
je 0x4507fe
sub eax, 2
test eax, 0xfffffffe
je 0x4508ca
lea eax, [esp + 0x20]
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x450810
sub eax, esi
sar eax, 1
lea edi, [eax + eax + 2]
cmp edi, ebx
jne 0x45082b
xor esi, esi
jmp 0x450858
lea edx, [edi + 0xb]
push edx
call fcn.0049e995
mov esi, eax
add esp, 4
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esi + 8]
push ecx
mov dword [esi], 1
mov dword [esi + 4], edi
call fcn.004a7df0
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x48], esi
mov dword [esp + 0x30], ecx
cmp ecx, ebx
je 0x45086b
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x34], esi
cmp esi, ebx
je 0x45087a
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x28c]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x5c]
push eax
push ecx
mov byte [esp + 0x288], 2
call fcn.0044a2b0
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x280], 1
call fcn.00447110
mov byte [esp + 0x27c], bl
cmp esi, ebx
je 0x4508c6
push esi
call ebp
test eax, eax
jne 0x4508c6
push esi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0x18]
cmp byte [esp + 0x17], bl
jne 0x450ad0
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x288]
push ecx
push edx
push eax
push str.Sessions_dDosDevices_08x__08x_c:
lea edx, [esp + 0x78]
call fcn.00407540
add esp, 0x14
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.00450570
mov esi, eax
mov byte [esp + 0x27c], 3
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x450933
push eax
mov edi, eax
call ebp
test eax, eax
jne 0x450933
push edi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp ecx, ebx
je 0x450948
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x27c], bl
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x45096d
push eax
mov esi, eax
call ebp
test eax, eax
jne 0x450969
push esi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x450976
mov eax, dword [ecx + 4]
jmp 0x450978
xor eax, eax
cmp eax, ebx
je 0x45097f
sub eax, 2
test eax, 0xfffffffe
je 0x450ad0
cmp ecx, ebx
je 0x450997
lea eax, [ecx + 8]
mov edi, eax
cmp eax, ebx
jne 0x45099c
mov edi, 0x4d9064
mov eax, str.DeviceLanmanRedirector_Z:0000000000000000
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4509a4
sub eax, esi
sar eax, 1
cmp ecx, ebx
je 0x4509bc
mov ecx, dword [ecx + 4]
jmp 0x4509be
xor ecx, ecx
cmp ecx, ebx
je 0x4509c5
sub ecx, 2
shr ecx, 1
cmp ecx, eax
jb 0x450a1b
mov eax, str.DeviceLanmanRedirector_
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4509d3
sub eax, edx
sar eax, 1
push eax
push str.DeviceLanmanRedirector_
push edi
call fcn.004a0f54
add esp, 0xc
test eax, eax
jne 0x450a1b
mov eax, str.DeviceLanmanRedirector_Z:0000000000000000
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x450a00
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2 - 2]
mov eax, 0x5c
mov word [edi], ax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x30]
call fcn.00402bd0
push edi
lea ebx, [esp + 0x44]
mov byte [esp + 0x280], 4
call fcn.00402bd0
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], esi
test esi, esi
je 0x450a4e
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x3c], edi
test edi, edi
je 0x450a61
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x28c]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
push eax
push ecx
mov byte [esp + 0x288], 6
call fcn.0044a2b0
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x280], 5
call fcn.00447110
mov byte [esp + 0x27c], 4
test esi, esi
je 0x450aae
push esi
call ebp
test eax, eax
jne 0x450aae
push esi
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x27c], 0
test edi, edi
je 0x450aca
push edi
call ebp
test eax, eax
jne 0x450aca
push edi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x27c], 0xffffffff
cmp ecx, ebx
je 0x450af1
push ecx
mov esi, ecx
call ebp
test eax, eax
jne 0x450af1
push esi
call fcn.0049e96f
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
inc ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
cmp ax, 0x5a
jbe 0x45079d
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x270
ret 0xc