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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
mov eax, dword [0x11ad127c]
xor eax, esp
mov dword [esp + 0x2e8], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
push edi
mov edi, ecx
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0xf7c]
mov eax, dword [eax + 0x1838]
mov dword [esp + 0x30], eax
test esi, esi
je 0x101d75e6
mov ecx, dword [ebx]
mov al, byte [ecx + 0x1ae]
test al, 0x20
je 0x101d75d6
test byte [ecx + 0x95], 8
mov byte [esp + 0x12], 1
jne 0x101d75db
mov byte [esp + 0x12], 0
shr al, 5
and al, 1
mov byte [esp + 0x28], al
jmp 0x101d75f0
mov byte [esp + 0x12], 0
mov byte [esp + 0x28], 0
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [edi + 0x11c0]
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xd2e4]
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x101d7630
mov eax, dword [ecx]
mov eax, dword [eax + 0x184]
call eax
mov byte [esp + 0x13], 1
test al, al
jne 0x101d7635
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x14]
mov dl, byte [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov eax, dword [ecx + 0xd3a8]
cmp eax, 4
jne 0x101d768c
test dl, dl
jne 0x101d765b
cmp byte [esp + 0x12], dl
je 0x101d7700
lea eax, [esi - 1]
test eax, eax
js 0x101d7e0b
mov ecx, dword [ebx + eax*4]
test ecx, ecx
je 0x101d7678
mov ecx, dword [ecx + 0x114]
cmp ecx, 0xffffffff
jne 0x101d7682
sub eax, 1
jns 0x101d7666
jmp 0x101d7e0b
push ecx
push 2
push 0
jmp 0x101d7e04
cmp eax, 3
jne 0x101d7700
test dl, dl
jne 0x101d769b
cmp byte [esp + 0x12], dl
je 0x101d7700
add esi, 0xffffffff
js 0x101d7e0b
mov eax, dword [ebx + esi*4]
lea ebx, [ebx + esi*4]
test eax, eax
je 0x101d76d8
mov eax, dword [eax + 0x114]
cmp eax, 0xffffffff
je 0x101d76d8
push 0
lea ecx, [esp + 0x17]
mov byte [esp + 0x17], 0
push ecx
push 0
push 0
push eax
mov ecx, edi
call fcn.101d80f0
cmp byte [esp + 0x13], 0
jne 0x101d76e7
sub esi, 1
js 0x101d7e0b
mov ebx, dword [esp + 0x20]
jmp 0x101d76a4
mov eax, dword [ebx]
test eax, eax
je 0x101d7e0b
push dword [eax + 0x114]
push 1
push 0
jmp 0x101d7e04
test byte [ecx + 0xd3a4], 1
jne 0x101d7727
test byte [ecx + 0xd3a4], 2
jne 0x101d775e
cmp dword [ecx + 0xd39c], 0
je 0x101d775e
test eax, eax
jne 0x101d775e
cmp byte [ecx + 0xd3e0], al
je 0x101d775e
cmp dword [esp + 0x30], 0x57ad
jne 0x101d7749
mov eax, dword [ecx + 0xbe28]
cmp dword [eax + 0xd46f], 0
jne 0x101d775e
test byte [ecx + 0xd3a0], 8
je 0x101d775e
mov al, byte [esp + 0x12]
test dl, dl
jne 0x101d777d
test al, al
jne 0x101d777d
call fcn.101e0d10
test al, al
jne 0x101d7776
mov word [edi + 0x1038], 0
mov dword [edi + 0x1028], 0
jmp 0x101d7e0b
mov al, byte [esp + 0x12]
mov dl, byte [ebp + 8]
cmp dword [esp + 0x30], 0x57ad
jne 0x101d78bd
cmp dword [edi + 0x105c], 0
lea eax, [edi + 0x105c]
mov dword [esp + 0x18], eax
jne 0x101d7884
mov esi, dword [esp + 0x68]
lea eax, [esp + 0x48]
push 0x120
push 0
push eax
call fcn.10425c00
mov edi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x68], esi
xor bl, bl
mov dword [esp + 0x48], 0x4e564441
lea esi, [esp + 0x89]
mov dword [esp + 0x4c], 0x10002
mov dword [esp + 0x50], 0x120
mov dword [esp + 0x54], 0x4e564458
mov dword [esp + 0x58], 0x1000083
mov dword [esp + 0x78], 9
mov dword [esp + 0x84], 0x25
mov byte [esp + 0xac], 4
nop
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esi - 1], bl
lea edi, [edi + 4]
inc bl
mov dword [edi - 4], eax
mov dword [esi], eax
lea esi, [esi + 9]
mov dword [esi - 5], 0
cmp bl, 4
jb 0x101d7810
mov edi, dword [esp + 0x2c]
mov ecx, edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x120
mov eax, dword [edi + 0x11cc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
call fcn.101d20e0
test eax, eax
js 0x101d7e0d
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov edx, ebx
mov ecx, esi
call fcn.101d7290
test eax, eax
je 0x101d7e0b
mov esi, dword [eax + 0x114]
push 0
push dword [edi + esi*4 + 0x105c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push esi
sete byte [esp + 0x20]
push 0
push dword [esp + 0x24]
jmp 0x101d7e04
test dl, dl
jne 0x101d7d4b
test al, al
jne 0x101d7d4b
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0xbe28]
mov ecx, dword [eax + 0x3b55]
cmp ecx, 6
jne 0x101d78f1
cmp dword [eax + 0x3b59], 1
jmp 0x101d78f4
cmp ecx, 0xa
jae 0x101d78fa
xor cl, cl
jmp 0x101d78fc
mov cl, 1
mov word [edi + 0x1038], 0
mov dword [edi + 0x1028], 0
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0xf944], 2
ja 0x101d7e0b
test cl, cl
je 0x101d7e0b
cmp dword [edi + 0x1078], 0
jne 0x101d7959
mov ecx, 0x1046cf10
call fcn.101c2700
mov dword [edi + 0x1078], eax
test eax, eax
je 0x101d7959
push 0x1046cf20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x1074], eax
cmp byte [edi + 0x103c], 0
mov dword [esp + 0x14], 0
je 0x101d7974
mov dword [esp + 0x14], 1
jmp 0x101d7985
mov eax, dword [edi + 0x1074]
test eax, eax
je 0x101d7985
lea ecx, [esp + 0x14]
push ecx
call eax
mov ecx, edi
call fcn.101d72e0
mov ecx, dword [ebx + 0x10]
mov esi, eax
mov eax, dword [ecx + 0xd3b4]
test eax, eax
jne 0x101d79ae
test esi, esi
je 0x101d79b3
call fcn.10138af0
cmp eax, esi
sete al
jmp 0x101d79b8
cmp eax, 1
je 0x101d79c0
call fcn.100b77d0
test al, al
je 0x101d7d35
cmp dword [esp + 0x14], 0
je 0x101d7d35
cmp dword [edi + 0x102c], 0
je 0x101d79e1
cmp dword [edi + 0x1030], 0
je 0x101d7d35
mov eax, dword [edi + 0xf7c]
test byte [eax + 0xb38], 1
jne 0x101d7d35
push dword [esp + 0x18]
mov ecx, edi
push dword [esp + 0x2c]
call fcn.101d7500
test al, al
je 0x101d7d35
cmp byte [esp + 0x13], 0
jne 0x101d7d35
cmp dword [edi + 0x1058], 0
jne 0x101d7a3b
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [edi + 0x1058], eax
test eax, eax
je 0x101d7e0b
mov ebx, dword [edi + 0x106c]
call fcn.10138af0
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.10289d80
test eax, eax
js 0x101d7e0d
push 0x100
lea eax, [esp + 0x60]
mov dword [esp + 0x4c], 0x11c
push 0
push eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
call fcn.10425c00
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [esp + 0x15e], ax
mov dword [esp + 0x160], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [esp + 0x54]
mov dword [esp + 0x58], 6
xor ecx, ecx
mov dword [esp + 0x5c], 1
push eax
mov word [esp + 0x16c], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x101d7baa
cmp dword [ebx], 0
je 0x101d7baa
cmp dword [ebx + 8], 0
je 0x101d7baa
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x101d7baa
push 0
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov dword [esp + 0x288], 0x68
test eax, eax
je 0x101d7baa
lea ecx, [esp + 0x288]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x101d7baa
mov eax, dword [ebx + 8]
xor esi, esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x101d7baa
mov eax, dword [ebx]
mov ebx, eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2b0]
mov eax, ebx
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x101d7b86
test dx, dx
je 0x101d7b82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x101d7b86
add eax, 4
add ecx, 4
test dx, dx
jne 0x101d7b60
xor eax, eax
jmp 0x101d7b8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x101d7b9b
inc esi
add ebx, 0x54
cmp esi, dword [esp + 0x1c]
jb 0x101d7b50
jmp 0x101d7baa
mov ecx, dword [esp + 0x2c]
imul eax, esi, 0x54
mov eax, dword [eax + ecx + 0x40]
mov dword [esp + 0x20], eax
push 0x1000083
push 0x4e564458
mov edx, 0x120
lea ecx, [esp + 0x170]
call fcn.101a5680
mov eax, dword [edi + 0x1058]
mov ecx, edi
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x1a8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1b0], eax
mov eax, dword [edi + 0x11cc]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x168]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x19c], 9
mov dword [esp + 0x1a8], 0x21
mov dword [esp + 0x1b0], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0x120
call fcn.101d20e0
test eax, eax
js 0x101d7cdd
cmp dword [esp + 0x1b4], 0
je 0x101d7cd6
cmp byte [edi + 0x103a], 0
jne 0x101d7c60
mov byte [edi + 0x103b], 1
cmp dword [esp + 0x1b8], 0
mov byte [edi + 0x103a], 1
je 0x101d7cc8
mov ecx, dword [edi + 0x11d4]
push 1
push 1
mov ecx, dword [ecx + 0x5e0]
call fcn.101e43f0
cmp byte [edi + 0x103b], 0
mov ecx, 0x12c
mov eax, 0x50
cmovne eax, ecx
push eax
push dword [edi + 0x1058]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [edi + 0x103b], 0
test eax, eax
je 0x101d7cc8
push ebx
mov ecx, edi
call fcn.101d7370
mov word [edi + 0x103a], 0
jmp 0x101d7e0b
push dword [edi + 0x1058]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x101d7cdd
mov byte [edi + 0x103a], 0
cmp byte [ebp + 0x14], 0
je 0x101d7e0b
cmp byte [edi + 0x103a], 0
je 0x101d7e0b
test byte [ebx + 0x605], 8
mov eax, dword [ebx + 0x250]
mov edx, dword [eax + 0x30]
je 0x101d7d1b
xor eax, eax
cmp dword [edx + 0xc], 0x10
cmovne eax, edx
or dword [eax + 0x110], 1
jmp 0x101d7e0b
cmp dword [edx + 0xc], 0x10
lea eax, [edx + 0x28]
mov ecx, 0x18
cmovne ecx, eax
or dword [ecx], 0x400
jmp 0x101d7e0b
cmp byte [edi + 0x103a], 0
je 0x101d7e0b
push dword [esp + 0x24]
jmp 0x101d7cb3
cmp byte [edi + 0x103a], 0
je 0x101d7d68
push dword [esp + 0x24]
mov ecx, edi
call fcn.101d7370
mov word [edi + 0x103a], 0
mov edx, ebx
mov ecx, esi
call fcn.101d7290
mov esi, eax
test esi, esi
je 0x101d7e0b
mov ecx, dword [esi + 0x114]
mov edx, 1
shl edx, cl
test dword [edi + 0x102c], edx
je 0x101d7d98
test dword [edi + 0x1030], edx
je 0x101d7daf
push dword [esp + 0x18]
mov ecx, edi
push dword [esp + 0x2c]
call fcn.101d7500
test al, al
je 0x101d7daf
mov bl, 1
jmp 0x101d7db1
xor bl, bl
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
cmp dword [eax + 0x2d0], 0x2300
jb 0x101d7ddd
cmp byte [ebp + 8], 0
jne 0x101d7ddd
mov ecx, dword [edi + 0x13f4]
push esi
call fcn.101f1a40
test al, al
je 0x101d7dec
test bl, bl
je 0x101d7dec
cmp byte [esp + 0x13], 0
jne 0x101d7dec
mov al, 1
jmp 0x101d7dee
xor al, al
mov byte [edi + 0x1038], al
push dword [esi + 0x114]
mov byte [esp + 0x1c], al
push 0
push dword [esp + 0x20]
mov ecx, edi
call fcn.101d7e30
xor eax, eax
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 0x14