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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d457b
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x63ae80]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x63ae80]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
cmp dword [ebp + 0x14], 1
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x70], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x30], edx
jne 0x41e4db
cmp dword [ebp + 0x18], 4
jne 0x41e4db
lea edi, [ebx + 0x10]
push 1
mov dword [esp + 0x44], edi
call fcn.0041dc40
test eax, eax
jne 0x41e4e0
mov dword [esp + 0x48], eax
test esi, esi
je 0x41de89
mov esi, dword [esi]
test esi, esi
je 0x41de89
cmp dword [esi + 4], 0
mov eax, dword [esi]
ja 0x41de89
jb 0x41de85
cmp eax, 0x80000000
ja 0x41de89
mov dword [esp + 0x48], eax
xor esi, esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x318], esi
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x60e214
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x24]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov eax, dword [ecx]
mov ecx, dword [ebx + 0x28]
add edx, eax
mov dword [esp + 0x94], eax
mov eax, dword [ebx + 0x14]
add ecx, eax
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 0xa4], edx
mov edx, dword [ebx + 0x2c]
add edx, eax
mov dword [esp + 0x9c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [ebx + 0x30]
add ecx, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xac], edx
mov eax, 0x400
movzx edx, ax
mov eax, edx
shl edx, 0x10
mov dword [esp + 0xb0], ecx
or eax, edx
mov edx, dword [ebx + 0x4c]
mov ecx, 0x81
lea edi, [esp + 0x100]
mov dword [esp + 0xbc], 5
mov word [esp + 0xc4], si
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], 1
mov dword [esp + 0xd8], esi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0xfc], esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe8], edx
mov dword [esp + 0xc0], eax
mov byte [esp + 0x16], al
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0x17], al
jmp 0x41dff0
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x16], 0
je 0x41e122
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e122
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xe4], ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x54]
xor edi, edi
push ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xe8], edi
mov dword [esp + 0xc8], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
mov esi, eax
mov byte [esp + 0x16], 0
cmp esi, edi
jne 0x41e0f9
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
add edi, edx
adc eax, dword [esp + 0x68]
cmp eax, ecx
jb 0x41e089
ja 0x41e085
cmp edi, dword [esp + 0x24]
jb 0x41e089
cmp eax, ecx
ja 0x41e085
jb 0x41e07e
cmp edi, dword [esp + 0x24]
ja 0x41e085
cmp byte [esp + 0x17], 0
jne 0x41e089
xor cl, cl
jmp 0x41e08b
mov cl, 1
mov esi, dword [esp + 0x1c]
cmp eax, dword [esp + 0x20]
ja 0x41e229
jb 0x41e0a3
cmp edi, esi
ja 0x41e229
test cl, cl
je 0x41e229
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x68], eax
add ecx, 1
mov eax, 0
adc edx, eax
mov dword [esp + 0x64], edi
lea edi, [esp + 0x34]
push edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
push edx
push ecx
push eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
call eax
mov esi, eax
mov byte [esp + 0x16], 0
test esi, esi
je 0x41e050
xor edi, edi
cmp esi, 1
je 0x41e11e
cmp esi, 0x80004001
jne 0x41e3ec
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x41e11e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x1c]
cmp byte [esp + 0x17], 0
je 0x41e161
mov edx, dword [esp + 0xf0]
sub edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x24]
add edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0x28]
sub eax, esi
sbb ecx, dword [esp + 0x20]
xor esi, esi
cmp eax, edx
jne 0x41e161
cmp ecx, esi
jne 0x41e161
mov dword [esp + 0xc0], 2
lea esi, [esp + 0x94]
call fcn.0043e5e0
mov ecx, dword [esp + 0xb4]
sub ecx, dword [ebx + 0x20]
mov eax, ecx
cdq
mov esi, eax
xor eax, eax
sub esi, dword [esp + 0xf0]
sbb edx, eax
mov eax, dword [esp + 0x44]
xor edi, edi
sub esi, eax
sbb edx, edi
add esi, dword [esp + 0x24]
adc edx, dword [esp + 0x28]
cmp dword [esp + 0xfc], 5
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
je 0x41e40e
mov edx, dword [esp + 0xbc]
cmp edx, 4
jae 0x41e2a4
mov esi, dword [esp + edx*4 + 0x94]
sub esi, dword [ebx + edx*4 + 0x10]
mov ecx, dword [ebx + edx*4 + 0x10]
mov edi, dword [esp + 0x60]
mov ebx, dword [edi + edx*4]
mov eax, esi
call fcn.00438c60
mov edi, eax
test edi, edi
jne 0x41e49a
mov ecx, dword [esp + 0xbc]
cmp ecx, 3
jne 0x41e1fa
add dword [esp + 0x54], esi
adc dword [esp + 0x58], eax
mov eax, dword [esp + 0x80]
mov edx, dword [eax + ecx*4 + 0x10]
mov dword [esp + ecx*4 + 0x94], edx
mov ecx, dword [esp + 0xbc]
mov edx, dword [eax + ecx*4 + 0x24]
add edx, dword [eax + ecx*4 + 0x10]
mov ebx, eax
mov dword [esp + ecx*4 + 0xa4], edx
jmp 0x41e33e
mov eax, dword [ebx + 0x20]
add eax, dword [esp + 0x44]
mov dword [esp + 0xb8], eax
test cl, cl
je 0x41e269
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x24]
sub ecx, dword [esp + 0xb4]
sub eax, edi
cmp ecx, eax
jb 0x41e3c7
sub dword [esp + 0xb8], eax
mov dword [esp + 0xc0], 1
cmp dword [esp + 0x38], 0
ja 0x41e122
jb 0x41e284
cmp dword [esp + 0x34], 0x80000000
ja 0x41e122
sub edx, esi
add edx, dword [esp + 0xdc]
mov dword [esp + 0xe0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0xe4], edx
jmp 0x41e122
jne 0x41e4b9
mov byte [esp + 0x16], 1
cmp eax, ecx
je 0x41e2c4
mov ecx, dword [ebx + 0x20]
add ecx, eax
mov dword [esp + 0xb8], ecx
jmp 0x41dff0
cmp byte [esp + 0x17], 0
jne 0x41dff0
mov edx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov dword [esp + 0x44], edi
lea edi, [esp + 0x84]
push edi
push edx
mov dword [esp + 0x8c], edx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov esi, dword [ecx]
mov edx, dword [esi + 0xc]
push eax
push ecx
call edx
mov esi, eax
test esi, esi
jne 0x41e3b4
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x41e325
mov byte [esp + 0x17], 1
jmp 0x41dfec
add dword [esp + 0x24], eax
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x44], eax
adc dword [esp + 0x28], 0
add ecx, eax
mov dword [esp + 0xb8], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x41dfec
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
mov eax, esi
sub eax, dword [esp + 0x74]
mov edx, edi
sbb edx, dword [esp + 0x78]
mov dword [esp + 0x88], edx
jne 0x41e372
cmp eax, 0x100000
jb 0x41dff0
mov eax, dword [esp + 0x54]
add eax, esi
cdq
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x94], edx
mov edx, dword [ecx]
push eax
push ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edi
call ecx
mov esi, eax
test esi, esi
je 0x41dfec
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
jmp 0x41e3fd
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e3e2
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 0x80004005
jmp 0x41e4e0
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x41e407
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
jmp 0x41e4e0
mov esi, dword [esp + 0x60]
lea eax, [esp + 0x94]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x40]
sub eax, esi
mov dword [esp + 0x40], eax
jmp 0x41e434
mov eax, dword [esp + 0x40]
mov ecx, dword [edi]
mov eax, dword [eax + esi]
mov ebx, dword [esi]
sub eax, ecx
call fcn.00438c60
mov ebx, eax
test ebx, ebx
jne 0x41e47b
mov eax, dword [esp + 0x30]
inc eax
add edi, 4
add esi, 4
mov dword [esp + 0x30], eax
cmp eax, 4
jl 0x41e430
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e477
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x41e4e0
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e496
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
jmp 0x41e4e0
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e4b5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x41e4e0
mov dword [esp + 0x318], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41e4d4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0x80004005
jmp 0x41e4e0
mov eax, 0x80070057
mov ecx, dword [esp + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret 0x14