Function at 0x10001310
Capabilities:
Check os version
Get system information on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x1000b018]
xor eax, esp
mov dword [esp + 0x1c0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x5c], esi
cmp esi, ebx
jne 0x10001364
mov eax, 0x80070057
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.10002218
mov esp, ebp
pop ebp
ret 0x10
cmp edi, ebx
jne 0x10001371
mov edi, 0x100011b0
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp + 0x84]
cmp eax, ebx
je 0x10001394
cmp eax, 9
jne 0x10001bdf
lea edx, [esp + 0xa8]
push edx
mov dword [esp + 0xac], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100013e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10001be7
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.10002218
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0xac], 6
jne 0x10001bdf
cmp dword [esp + 0xb0], ebx
jne 0x10001bdf
cmp dword [esp + 0xb4], 0x1772
jne 0x10001bdf
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x10001432
mov eax, 0x80070005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.10002218
mov esp, ebp
pop ebp
ret 0x10
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, ebx
jl 0x10001be7
lea eax, [esp + 0x38]
push eax
push 0x1000758c
push 1
push ebx
push 0x100076cc
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x1000149a
lea ecx, [esp + 0x34]
push ecx
push 0x1000737c
push 1
push ebx
push 0x1000769c
mov dword [esp + 0x48], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jge 0x100014b9
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x1000149a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x38], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.10002218
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x30]
push ecx
push ebx
push ebx
call edi
mov eax, dword [esp + 0x44]
add esp, 0xc
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push ecx
push eax
mov byte [esp + 0x1b], bl
mov byte [esp + 0x27], bl
call edx
mov esi, eax
cmp esi, ebx
jl 0x10001780
test byte [ebp + 8], 2
je 0x10001500
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push 2
push eax
call edx
push str.__CategoryIDs_contains_cb090352_c615_4c0f_a2ab_e86220921a2e__
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esp + 0x30]
push ebx
push ebx
mov dword [esp + 0x2c], eax
xor eax, eax
push ebx
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x3c], ebx
mov word [esp + 0x70], ax
mov dword [esp + 0x72], eax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov word [esp + 0x7e], ax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], vtable.ISCC.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x78]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x7c]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x80]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
mov ecx, dword [edx + 0x3c]
call ecx
mov esi, eax
cmp esi, ebx
jl 0x100015d3
mov edx, dword [esp + 0x30]
push edx
push ebx
push 1
call edi
mov eax, dword [esp + 0x60]
add esp, 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x30]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp esi, ebx
jl 0x100016d7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x58]
cmp eax, 2
je 0x1000160f
cmp eax, 3
je 0x1000160f
mov esi, 0x80004005
jmp 0x100016d7
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, eax
cmp esi, ebx
jl 0x100016d7
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov dword [esp + 0x3c], ebx
cmp dword [esp + 0x24], ebx
jle 0x100016c7
lea ecx, [ecx]
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x1c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push eax
mov eax, dword [ecx + 0x68]
call eax
cmp word [esp + 0x28], 0xffff
jne 0x1000168a
mov byte [esp + 0x1f], 1
jmp 0x100016a8
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x30]
call eax
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100016b8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x24]
jl 0x10001650
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x100016d7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x100016eb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x100016ff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x4c], vtable.ISCC.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], bl
je 0x10001780
test byte [ebp + 8], 1
je 0x10001780
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
xor edi, edi
cmp dword [esp + 0x3c], ebx
jle 0x1000177c
jmp 0x10001740
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xbc]
push eax
call edx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x10001775
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x10001740
mov edi, dword [esp + 0x20]
mov byte [esp + 0x1d], bl
cmp byte [esp + 0x13], bl
je 0x10001909
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
mov esi, eax
cmp esi, ebx
jl 0x10001909
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov esi, eax
cmp esi, ebx
jl 0x100018f9
xor eax, eax
push ebx
push ebx
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
mov eax, dword [esp + 0x38]
push ebx
xor ecx, ecx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov word [esp + 0x58], cx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], vtable.IDPC.0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], vtable.IDCC.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
push ecx
mov ecx, dword [edx + 0x3c]
call ecx
mov esi, eax
cmp esi, ebx
jl 0x100018d2
mov edx, dword [esp + 0x30]
push edx
push ebx
push 2
call edi
mov eax, dword [esp + 0x88]
add esp, 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x44]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jl 0x100018d2
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov eax, dword [esp + 0x58]
cmp eax, 2
je 0x100018cd
cmp eax, 3
jne 0x100018d2
mov byte [esp + 0x1d], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100018e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x7c]
push eax
mov dword [esp + 0x74], vtable.IDCC.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10001909
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x1e], bl
mov byte [esp + 0x28], bl
cmp byte [esp + 0x1d], bl
je 0x10001afb
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x38]
call eax
mov esi, eax
cmp esi, ebx
jl 0x10001afb
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov esi, eax
cmp esi, ebx
jl 0x10001aeb
test byte [ebp + 8], 1
mov dword [esp + 0x2c], ebx
je 0x10001986
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
push 0x10009918
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x10001986
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
push 0xffffffffffffffff
push eax
call edx
xor eax, eax
push ebx
push ebx
mov word [esp + 0x50], ax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
mov eax, dword [esp + 0x38]
push ebx
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], vtable.IIPC.0
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], eax
mov dword [esp + 0x80], vtable.IICC.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov edx, dword [ecx]
lea eax, [esp + 0x20]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 0xc], esi
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x78]
push eax
push ecx
mov ecx, dword [edx + 0x44]
call ecx
mov esi, eax
cmp esi, ebx
jl 0x10001ab0
mov edx, dword [esp + 0x30]
push edx
push ebx
push 3
call edi
mov eax, dword [esp + 0x88]
add esp, 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
jl 0x10001ab0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x58]
cmp eax, 2
je 0x10001a8d
cmp eax, 3
jne 0x10001ab0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 0x20]
mov byte [esp + 0x26], 1
call eax
cmp word [esp + 0x44], 0xffff
jne 0x10001ab0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10001ac4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10001ad8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x7c]
push eax
mov dword [esp + 0x74], vtable.IICC.0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10001afb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
push eax
push ebx
push 4
call edi
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, ebx
je 0x10001b1c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x10001b30
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp esi, ebx
jge 0x10001b8f
cmp esi, 0x80244024
jg 0x10001b67
cmp esi, 0x80244016
jge case.0x10001b60.2145124343
lea eax, [esi + 0x7fdbfff7]
cmp eax, 0x18
ja case.0x10001b60.2145124342
movzx eax, byte [eax + 0x10001c08]
jmp dword [eax*4 + 0x10001c00]
cmp esi, 0x8024402c
je case.0x10001b60.2145124343
cmp esi, 0x80246005
je case.0x10001b60.2145124343
cmp esi, 0x8024f004
jne case.0x10001b60.2145124342
mov ecx, dword [esp + 0x5c]
mov dword [ecx], 6
jmp 0x10001be5
cmp byte [esp + 0x13], bl
je 0x10001bca
cmp byte [esp + 0x1d], bl
je 0x10001bbe
cmp byte [esp + 0x1e], bl
je 0x10001bb2
mov eax, dword [esp + 0x5c]
xor edx, edx
cmp byte [esp + 0x28], bl
setne dl
mov dword [eax], edx
jmp 0x10001be5
mov ecx, dword [esp + 0x5c]
mov dword [ecx], 5
jmp 0x10001be5
mov edx, dword [esp + 0x5c]
mov dword [edx], 4
jmp 0x10001be5
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp byte [esp + 0x1f], bl
setne al
dec eax
and eax, 3
mov dword [ecx], eax
jmp 0x10001be5
mov dword [esi], 2
xor eax, eax
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002218
mov esp, ebp
pop ebp
ret 0x10