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

Disassembly:
push 0xffffffffffffffff
push 0x427f0d
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x42f0f4]
xor eax, esp
mov dword [esp + 0x3b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42f0f4]
xor eax, esp
push eax
lea eax, [esp + 0x3c8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3dc]
mov esi, dword [esp + 0x3d8]
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x4292e8
lea ecx, [esp + 0xb0]
mov dword [esp + 0x34], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
call fcn.00403d50
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push 0x42994c
push 0x80000002
mov dword [esp + 0x3e4], ebx
mov dword [esp + 0x30], ebx
call dword [0x429010]
cmp eax, ebx
je 0x40dc60
push ebx
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push 0x4292e8
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403d50
cmp dword [esp + 0xc0], 0x10
jmp 0x40e0ed
mov ecx, dword [esp + 0x1c]
push 0x80
lea eax, [esp + 0xc8]
push eax
push ebx
push ecx
mov dword [esp + 0x34], ebx
call dword [0x429014]
test eax, eax
jne 0x40e1a7
push ebx
push 0x4292e8
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], 0
call fcn.00403d50
lea eax, [esp + 0xc4]
mov byte [esp + 0x3d0], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dcc6
sub eax, edx
push eax
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x3c]
call fcn.00403d50
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x58]
push 0x42994c
push ecx
mov byte [esp + 0x3dc], 2
call fcn.00404d20
mov ebp, 0x10
add esp, 0xc
cmp dword [eax + 0x18], ebp
jb 0x40dd0f
mov eax, dword [eax + 4]
jmp 0x40dd12
add eax, 4
lea edx, [esp + 0x30]
push edx
push 0x20019
push ebx
push eax
push 0x80000002
call dword [0x429010]
mov esi, eax
cmp dword [esp + 0x6c], ebp
jb 0x40dd3e
mov eax, dword [esp + 0x58]
push eax
call fcn.0041a65d
add esp, 4
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
mov byte [esp + 0x3d0], 1
cmp dword [esp + 0x4c], ebp
jb 0x40dd66
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041a65d
add esp, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0x80
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0x200
cmp esi, ebx
jne 0x40df54
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x3c]
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x158]
push eax
push ebx
push ecx
call dword [0x42901c]
test eax, eax
jne 0x40df54
lea ebx, [ebx]
mov eax, 1
cmp dword [esp + 0x28], eax
je 0x40ddd4
add dword [esp + 0x14], eax
jmp 0x40df0c
lea eax, [esp + 0x144]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
jmp 0x40ddf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ddf0
sub eax, edx
push eax
lea edx, [esp + 0x148]
push edx
lea ecx, [esp + 0x3c]
call fcn.00403d50
mov esi, dword [esp + 0x48]
mov ecx, esi
cmp esi, 0xa
jb 0x40de1b
mov ecx, 0xa
mov edi, dword [esp + 0x4c]
cmp edi, ebp
mov ebp, dword [esp + 0x38]
mov eax, ebp
jae 0x40de2d
lea eax, [esp + 0x38]
push ecx
push 0x429940
push eax
call fcn.00402800
add esp, 0xc
cmp eax, ebx
jne 0x40de54
cmp esi, 0xa
jae 0x40de4a
or eax, 0xffffffff
jmp 0x40de52
xor eax, eax
cmp esi, 0xa
setne al
cmp eax, ebx
sete bl
mov byte [esp + 0x3d0], 1
cmp edi, 0x10
jb 0x40de6d
push ebp
call fcn.0041a65d
add esp, 4
test bl, bl
je 0x40defe
lea eax, [esp + 0x1c4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40de80
sub eax, edx
push eax
lea eax, [esp + 0x1c8]
push eax
lea ecx, [esp + 0x78]
call fcn.00403d50
mov eax, dword [esp + 0x84]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40deb5
call fcn.0041a7c5
mov eax, dword [esp + 0x84]
cmp dword [esp + 0x88], 0x10
mov ecx, dword [esp + 0x74]
jae 0x40dec7
lea ecx, [esp + 0x74]
cmp byte [ecx + esi], 0x5c
je 0x40defe
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40ded9
call fcn.0041a7c5
cmp dword [esp + 0x88], 0x10
mov eax, dword [esp + 0x74]
jae 0x40deeb
lea eax, [esp + 0x74]
cmp byte [eax + esi], 0x2f
je 0x40defe
push 0x5c
push 1
lea ecx, [esp + 0x78]
call fcn.004039b0
inc dword [esp + 0x14]
mov ebp, 0x10
lea edi, [ebp - 1]
xor ebx, ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c8]
push edx
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x158]
push edx
push eax
push ecx
mov dword [esp + 0x40], 0x200
mov dword [esp + 0x38], 0x80
call dword [0x42901c]
test eax, eax
je 0x40ddc0
mov edx, dword [esp + 0x30]
push edx
call dword [0x429028]
inc dword [esp + 0x24]
cmp dword [esp + 0x84], ebx
jne 0x40df8b
mov byte [esp + 0x3d0], 0
cmp dword [esp + 0x88], ebp
jb 0x40e097
mov eax, dword [esp + 0x74]
push eax
jmp 0x40e08f
lea ecx, [esp + 0x34]
push ecx
call fcn.0040d910
mov edx, dword [esp + 0x54]
push edx
push eax
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0x3e0], 4
call fcn.00404bb0
push 0x5c
push eax
lea ecx, [esp + 0xa4]
push ecx
mov byte [esp + 0x3ec], 5
call fcn.0040a8b0
add esp, 0x1c
cmp dword [esp + 0x6c], ebp
jb 0x40dfdb
mov edx, dword [esp + 0x58]
push edx
call fcn.0041a65d
add esp, 4
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
mov byte [esp + 0x3d0], 8
cmp dword [esp + 0x4c], ebp
jb 0x40e003
mov eax, dword [esp + 0x38]
push eax
call fcn.0041a65d
add esp, 4
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], 0
cmp dword [esp + 0x88], ebp
jae 0x40e021
lea ecx, [esp + 0x74]
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], ebp
jae 0x40e038
lea eax, [esp + 0x90]
push ecx
push eax
call fcn.0041b682
add esp, 8
test eax, eax
je 0x40e129
cmp dword [esp + 0xa4], ebp
jb 0x40e063
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041a65d
add esp, 4
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], 0
mov byte [esp + 0x3d0], 0
cmp dword [esp + 0x88], ebp
jb 0x40e097
mov edx, dword [esp + 0x74]
push edx
call fcn.0041a65d
add esp, 4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push 0x80
lea eax, [esp + 0xc8]
push eax
push ecx
push edx
call dword [0x429014]
test eax, eax
je 0x40dc85
mov ebp, 0x10
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
push eax
call dword [0x429028]
lea ecx, [esp + 0xa8]
push ecx
push 0x42994c
push esi
call fcn.00404d20
add esp, 0xc
cmp dword [esp + 0xc0], ebp
jb 0x40e0ff
mov edx, dword [esp + 0xac]
push edx
call fcn.0041a65d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x3c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b0]
xor ecx, esp
call fcn.0041ac87
add esp, 0x3c0
ret
lea eax, [esp + 0xc4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e133
sub eax, edx
push eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xb0]
call fcn.00403d50
cmp dword [esp + 0xa4], ebp
jb 0x40e16a
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0041a65d
add esp, 4
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], 0
mov byte [esp + 0x3d0], 0
cmp dword [esp + 0x88], ebp
jb 0x40e0c1
mov edx, dword [esp + 0x74]
push edx
call fcn.0041a65d
add esp, 4
jmp 0x40e0c1
mov ebp, 0x10
jmp 0x40e0c5