Function at 0x121f160
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x12a176b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x13116ec]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x13116ec]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
mov ebp, dword [esp + 0xc0]
mov edi, ecx
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov dword [esp + 0xb8], ebx
cmp edi, ebx
je 0x121f1e6
mov edx, dword [edi]
mov ecx, dword [edx + 0x28]
lea eax, [esp + 0x18]
push eax
push edi
call ecx
test eax, eax
js 0x121f1e6
mov esi, dword [esp + 0x18]
jmp 0x121f1e8
xor esi, esi
mov dword [esp + 0x14], ebx
cmp esi, 5
jne 0x121f229
mov edx, dword [edi]
mov ecx, dword [edx + 0x34]
lea eax, [esp + 0x18]
push eax
push edi
mov dword [esp + 0x20], ebx
call ecx
test eax, eax
js 0x121f236
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x121f236
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [esp + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x121f236
mov eax, dword [edi]
mov edx, dword [eax + 0x68]
lea ecx, [esp + 0x14]
push ecx
push edi
call edx
cmp dword [esp + 0x14], ebx
je 0x121f296
mov eax, dword [ebp]
mov edx, dword [eax + 0x14c]
mov ecx, ebp
call edx
test al, al
jne 0x121f268
cmp esi, 3
jne 0x121f268
call fcn.0121f0d0
test al, al
jne 0x121f268
mov eax, dword [esp + 0x14]
call fcn.0121f050
test al, al
jne 0x121f28b
mov edx, dword [esp + 0x14]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x121f271
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.010f1d20
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [esi - 3]
cmp eax, 5
ja case.0x121f2a2.6
jmp dword [eax*4 + 0x121f520]
cmp dword [esp + 0x30], ebx
je case.0x121f2a2.6
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0x121f2c2
lea edx, [esp + 0x20]
lea esi, [esp + 0x90]
call fcn.010f1e50
mov byte [esp + 0xb8], 1
mov edx, dword [ebp]
mov edx, dword [edx + 0x11c]
mov eax, esi
push eax
mov ecx, ebp
call edx
lea ecx, [esp + 0x90]
mov esi, eax
mov byte [esp + 0xb8], bl
call fcn.010f4e90
jmp 0x121f4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0x121f30f
lea edx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x74], ax
mov eax, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x121f330
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x7c]
call fcn.010f1d20
mov byte [esp + 0xb8], 2
mov edx, dword [ebp]
mov edx, dword [edx + 0x11c]
lea eax, [esp + 0x74]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x88], 8
mov esi, eax
jb 0x121f384
mov eax, dword [esp + 0x74]
push eax
call fcn.01238a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], cx
jmp 0x121f4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0x121f3b1
lea edx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x3c], ax
mov eax, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x121f3d0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.010f1d20
mov byte [esp + 0xb8], 3
mov edx, dword [ebp]
mov edx, dword [edx + 0x12c]
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x50], 8
mov esi, eax
jb 0x121f421
mov eax, dword [esp + 0x3c]
push eax
call fcn.01238a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
jmp 0x121f4c4
cmp dword [esp + 0x34], 8
mov edx, dword [esp + 0x20]
jae 0x121f448
lea edx, [esp + 0x20]
xor eax, eax
mov word [esp + 0x58], ax
mov eax, edx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x121f460
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.010f1d20
mov byte [esp + 0xb8], 4
mov edx, dword [ebp]
mov edx, dword [edx + 0x124]
lea eax, [esp + 0x58]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0xb8], bl
cmp dword [esp + 0x6c], 8
mov esi, eax
jb 0x121f4b1
mov eax, dword [esp + 0x58]
push eax
call fcn.01238a36
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
cmp esi, ebx
je case.0x121f2a2.6
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xac]
push esi
call eax
mov dword [esp + 0xb8], 0xffffffff
cmp dword [esp + 0x34], 8
jb 0x121f4f6
mov ecx, dword [esp + 0x20]
push ecx
call fcn.01238a36
add esp, 4
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.01238a41
add esp, 0xa8
ret