Function at 0x10003e70
Capabilities:
Check os version

Disassembly:
sub esp, 0x130
mov eax, dword [0x100150a0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [0x10016df4]
push ebp
xor ebp, ebp
push esi
mov esi, 0x20
cmp eax, ebp
jne 0x1000413e
push ebx
push edi
push str.IsWow64Process
push str.kernel32
mov dword [0x10016df4], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
cmp edi, ebp
je 0x10003edc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x10003edc
cmp dword [esp + 0x18], ebp
je 0x10003edc
lea esi, [ebp + 0x40]
push str.ntdll.dll
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebp
je 0x10004137
push str.RtlGetNtVersionNumbers
push edi
call ebx
cmp eax, ebp
je 0x10004130
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0x10003f53
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10003f44
cmp eax, 0xa
je 0x10003f44
cmp eax, 0x5a
jne 0x10004137
mov dword [0x10016df4], 1
jmp 0x10004137
cmp eax, 5
jne 0x10003fdd
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x10003f73
mov dword [0x10016df4], 2
jmp 0x10004137
cmp eax, 1
jne 0x10003fa6
cmp si, 0x20
jne 0x10003f8d
mov dword [0x10016df4], 4
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 8
jmp 0x10004137
cmp eax, 2
jne 0x10004137
cmp si, 0x20
jne 0x10003fc4
mov dword [0x10016df4], 0x10
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x20
jmp 0x10004137
cmp eax, 6
jne 0x1000410a
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x1000407e
push 0x11c
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.10006e70
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esp + 0x13a], 3
jne 0x10004050
cmp si, 0x20
jne 0x10004037
mov dword [0x10016df4], 0x100
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x200
jmp 0x10004137
cmp si, 0x20
jne 0x10004065
mov dword [0x10016df4], 0x40
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x80
jmp 0x10004137
cmp eax, 1
jne 0x100040b1
cmp si, 0x20
jne 0x10004098
mov dword [0x10016df4], 0x400
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x800
jmp 0x10004137
cmp eax, 2
jne 0x100040da
cmp si, 0x20
jne 0x100040c8
mov dword [0x10016df4], 0x1000
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x2000
jmp 0x10004137
cmp eax, 3
jne 0x10004103
cmp si, 0x20
jne 0x100040f1
mov dword [0x10016df4], 0x4000
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x8000
jmp 0x10004137
cmp eax, 4
jb 0x10004137
jmp 0x1000410c
jbe 0x10004137
cmp si, 0x20
jne 0x1000411e
mov dword [0x10016df4], 0x10000
jmp 0x10004137
cmp si, 0x40
jne 0x10004137
mov dword [0x10016df4], 0x20000
jmp 0x10004137
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x10016df4]
pop edi
pop ebx
mov ecx, dword [esp + 0x134]
pop esi
pop ebp
xor ecx, esp
call fcn.10005e12
add esp, 0x130
ret