Function at 0x489ac0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0x24], eax
mov eax, 0x20
mov word [ebp - 0x10], ax
cmp dword [0x4e5754], 0
je 0x489aef
mov eax, dword [0x4e5754]
jmp 0x489e24
mov dword [0x4e5754], 0
mov ecx, 1
test ecx, ecx
je 0x489b45
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x489b43
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x489b43
cmp dword [ebp - 0x1c], 0
je 0x489b43
mov eax, 0x40
mov word [ebp - 0x10], ax
jmp 0x489b4e
mov ecx, 0x40
mov word [ebp - 0x10], cx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
push 0x4a017c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x489bc0
push 0x4a0190
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x489baa
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x489bbe
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4e5754]
jmp 0x489e24
jmp 0x489bca
mov eax, dword [0x4e5754]
jmp 0x489e24
cmp dword [ebp - 8], 4
jne 0x489bf1
cmp dword [ebp - 0xc], 0
je 0x489be2
cmp dword [ebp - 0xc], 0xa
je 0x489be2
cmp dword [ebp - 0xc], 0x5a
jne 0x489bec
mov dword [0x4e5754], 1
jmp 0x489e1f
cmp dword [ebp - 8], 5
jne 0x489c6c
cmp dword [ebp - 0xc], 0
jne 0x489c09
mov dword [0x4e5754], 2
jmp 0x489c67
cmp dword [ebp - 0xc], 1
jne 0x489c39
movzx edx, word [ebp - 0x10]
cmp edx, 0x20
jne 0x489c24
mov dword [0x4e5754], 4
jmp 0x489c37
movzx eax, word [ebp - 0x10]
cmp eax, 0x40
jne 0x489c37
mov dword [0x4e5754], 8
jmp 0x489c67
cmp dword [ebp - 0xc], 2
jne 0x489c67
movzx ecx, word [ebp - 0x10]
cmp ecx, 0x20
jne 0x489c54
mov dword [0x4e5754], 0x10
jmp 0x489c67
movzx edx, word [ebp - 0x10]
cmp edx, 0x40
jne 0x489c67
mov dword [0x4e5754], 0x20
jmp 0x489e1f
cmp dword [ebp - 8], 6
jne 0x489d0d
cmp dword [ebp - 0xc], 0
jne 0x489d0d
push 0x11c
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.00473d50
add esp, 0xc
mov dword [ebp - 0x148], 0x11c
lea ecx, [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx edx, byte [ebp - 0x2e]
cmp edx, 3
jne 0x489ce0
movzx eax, word [ebp - 0x10]
cmp eax, 0x20
jne 0x489ccb
mov dword [0x4e5754], 0x100
jmp 0x489cde
movzx ecx, word [ebp - 0x10]
cmp ecx, 0x40
jne 0x489cde
mov dword [0x4e5754], 0x200
jmp 0x489d08
movzx edx, word [ebp - 0x10]
cmp edx, 0x20
jne 0x489cf5
mov dword [0x4e5754], 0x40
jmp 0x489d08
movzx eax, word [ebp - 0x10]
cmp eax, 0x40
jne 0x489d08
mov dword [0x4e5754], 0x80
jmp 0x489e1f
cmp dword [ebp - 8], 6
jne 0x489d46
cmp dword [ebp - 0xc], 1
jne 0x489d46
movzx ecx, word [ebp - 0x10]
cmp ecx, 0x20
jne 0x489d2e
mov dword [0x4e5754], 0x400
jmp 0x489d41
movzx edx, word [ebp - 0x10]
cmp edx, 0x40
jne 0x489d41
mov dword [0x4e5754], 0x800
jmp 0x489e1f
cmp dword [ebp - 8], 6
jne 0x489d7f
cmp dword [ebp - 0xc], 2
jne 0x489d7f
movzx eax, word [ebp - 0x10]
cmp eax, 0x20
jne 0x489d67
mov dword [0x4e5754], 0x1000
jmp 0x489d7a
movzx ecx, word [ebp - 0x10]
cmp ecx, 0x40
jne 0x489d7a
mov dword [0x4e5754], 0x2000
jmp 0x489e1f
cmp dword [ebp - 8], 6
jne 0x489db5
cmp dword [ebp - 0xc], 3
jne 0x489db5
movzx edx, word [ebp - 0x10]
cmp edx, 0x20
jne 0x489da0
mov dword [0x4e5754], 0x4000
jmp 0x489db3
movzx eax, word [ebp - 0x10]
cmp eax, 0x40
jne 0x489db3
mov dword [0x4e5754], 0x8000
jmp 0x489e1f
cmp dword [ebp - 8], 6
jne 0x489deb
cmp dword [ebp - 0xc], 4
jne 0x489deb
movzx ecx, word [ebp - 0x10]
cmp ecx, 0x20
jne 0x489dd6
mov dword [0x4e5754], 0x10000
jmp 0x489de9
movzx edx, word [ebp - 0x10]
cmp edx, 0x40
jne 0x489de9
mov dword [0x4e5754], 0x20000
jmp 0x489e1f
cmp dword [ebp - 8], 0xa
jne 0x489e1f
cmp dword [ebp - 0xc], 0
jne 0x489e1f
movzx eax, word [ebp - 0x10]
cmp eax, 0x20
jne 0x489e0c
mov dword [0x4e5754], 0x10000
jmp 0x489e1f
movzx ecx, word [ebp - 0x10]
cmp ecx, 0x40
jne 0x489e1f
mov dword [0x4e5754], 0x20000
mov eax, dword [0x4e5754]
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret