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

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [esp + 0x124]
push esi
mov esi, dword [ebp*8 + 0x6843b80c]
push edi
mov edi, dword [esi + 0x10]
add edi, 0x130
push edi
push 0x2042
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
jne 0x68457aeb
mov dword [esp + 0x10], eax
jmp 0x68457d60
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x134]
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx], 0x69
mov dword [ebx + 4], 0xf0
mov dword [ebx + 0x40], ebp
mov eax, dword [esi + 0xec]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebp*8 + 0x6843b80c]
lea eax, [ebx + 0xf0]
push edx
push eax
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x58], eax
call fcn.6845957c
mov eax, dword [esi + 8]
mov dword [ebx + 0x50], eax
mov ecx, dword [esi + 0x10]
add esp, 8
mov dword [ebx + 0x4c], ecx
mov edx, dword [esi + 0xc]
lea eax, [esp + 0x14]
push eax
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x5c], str.HP1005K
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x18]
movzx edi, byte [esp + 0x1c]
cmp eax, 5
sbb ecx, ecx
xor edx, edx
mov dh, al
and ecx, 0xffffff00
add ecx, 0x500
mov dword [ebx + 8], ecx
movzx eax, dx
or eax, edi
mov dword [ebx + 0xc], eax
cmp dword [esp + 0x24], 1
jne 0x68457ba8
or edi, 0x300
mov dword [ebx + 0xc], edi
mov ecx, dword [ebx + 0xc]
mov eax, 0x502
cmp ecx, eax
jle 0x68457bb7
mov dword [ebx + 0xc], eax
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x64]
push edx
call fcn.68457920
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x64]
push ecx
call fcn.68457920
mov edx, dword [ebx + 0x14]
push 0x6844858c
push edx
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
cmp eax, edi
jne 0x68457bf3
mov dword [esp + 0x10], edi
jmp 0x68457d60
mov ecx, dword [ebx + 0x18]
push ecx
call eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x78], edi
mov edx, dword [eax + 0xf4]
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x1c], 0x20
mov dword [ebx + 0x70], edi
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.68457920
cmp eax, 0x20
mov dword [ebx + 0x28], eax
jae 0x68457c32
mov dword [esp + 0x10], edi
jmp 0x68457d60
mov dword [ebx + 0x2c], edi
mov edx, dword [0x684678f0]
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x80], edi
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x208]
cmp eax, edi
je 0x68457c75
push eax
call fcn.68457920
push 0x6844858c
push eax
mov dword [ebx + 0xe8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x68457c29
call eax
mov dword [ebx + 0xec], eax
mov edx, dword [esp + 0x130]
push edx
lea ecx, [ebx + 0x130]
lea eax, [ebx + 0xf0]
push ebp
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x74], 0x68457340
mov dword [ebx + 0x84], fcn.68458460
mov dword [ebx + 0x88], 0x68457f10
mov dword [ebx + 0x8c], 0x684587f0
mov dword [ebx + 0x90], fcn.68458d10
mov dword [ebx + 0x94], 0x68451000
mov dword [ebx + 0xa8], 0x6844d0f0
mov dword [ebx + 0xac], 0x68459210
mov dword [ebx + 0xdc], 0x68449c20
mov dword [ebx + 0xb0], 0x684586d0
mov dword [ebx + 0xb4], 0x68458700
mov dword [ebx + 0xb8], 0x68458730
mov dword [ebx + 0xbc], 0x68458760
mov dword [ebx + 0xc0], 0x684587c0
mov dword [ebx + 0xc4], 0x68453950
mov dword [ebx + 0xc8], fcn.684497f0
mov dword [ebx + 0xcc], fcn.68455aa0
mov dword [ebx + 0xe0], 0x68458fa0
mov dword [ebx + 0xe4], 0x68459090
call fcn.684576d0
cmp dword [esp + 0x138], edi
je 0x68457d60
mov dword [ebp*4 + 0x68467db8], ebx
call fcn.68450ff0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x68457d9a
test ebx, ebx
je 0x68457d8b
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x10