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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5172e8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 4], edi
je 0x4f0048
mov eax, dword [esi + 0x44]
push ebp
mov ebp, dword [esi + 0x40]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
call fcn.005085c8
mov eax, dword [esi + 0x50]
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x4efe18
lea eax, [esi + 0xec]
cmp eax, edi
jne 0x4efdb9
xor eax, eax
jmp 0x4efdbc
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.00508692
lea eax, [esi + 0x104]
cmp eax, edi
jne 0x4efddb
xor eax, eax
jmp 0x4efdde
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.005087e3
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
neg eax
sbb eax, eax
push 0xcc0020
and eax, ebx
push edi
push edi
push eax
push 0x20
push 0x20
push ecx
push edx
mov edx, dword [esi + 0xf0]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x6c]
sub eax, ecx
mov ecx, dword [esp + 0x48]
sub eax, 2
cmp ecx, eax
jle 0x4efe38
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x6c]
sub ecx, edx
sub ecx, 2
jmp 0x4efe3e
cmp ecx, edi
jge 0x4efe3e
xor ecx, ecx
mov edx, dword [esi + 0x78]
mov ebx, dword [esi + 0x70]
mov eax, dword [esp + 0x4c]
sub edx, ebx
sub edx, 2
cmp eax, edx
jle 0x4efe5b
mov eax, dword [esi + 0x78]
sub eax, ebx
sub eax, 2
jmp 0x4efe61
cmp eax, edi
jge 0x4efe61
xor eax, eax
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x40], ecx
cmp edx, edi
mov dword [esi + 0x44], eax
je 0x4eff28
mov edx, dword [esi + 0x60]
cmp edx, edi
je 0x4eff28
xor edi, edi
mov di, word [edx + 0x12]
add edi, 0xffffff80
cmp edi, 5
ja case.0x4efe8f.130
jmp dword [edi*4 + 0x4f005c]
mov edi, dword [esi]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
lea ecx, [esi + 0xec]
push edx
push ecx
mov ecx, esi
call dword [edi + 0x78]
jmp case.0x4efe8f.130
mov edi, dword [esi]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
lea ecx, [esi + 0xec]
push edx
push ecx
mov ecx, esi
call dword [edi + 0x84]
jmp case.0x4efe8f.130
mov edi, dword [esi]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
lea ecx, [esi + 0xec]
push edx
push ecx
mov ecx, esi
call dword [edi + 0x90]
jmp case.0x4efe8f.130
mov edi, dword [esi]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
lea ecx, [esi + 0xec]
push edx
push ecx
mov ecx, esi
call dword [edi + 0xa8]
jmp case.0x4efe8f.130
mov edi, dword [esi]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push ebp
lea ecx, [esi + 0xec]
push edx
push ecx
mov ecx, esi
call dword [edi + 0x9c]
jmp case.0x4efe8f.130
xor ebx, ebx
cmp word [esi + 0x14], di
jbe case.0x4efe8f.130
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [esi + 0x3c]
cmp word [edx + edi + 0x12], 0x81
lea eax, [edx + edi]
jne 0x4eff62
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
push ecx
add eax, 0x28
push edx
push eax
call ebp
test eax, eax
je 0x4eff62
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + edi]
test ch, 8
je 0x4eff70
xor ecx, ecx
inc ebx
mov cx, word [esi + 0x14]
add edi, 0x5c
cmp ebx, ecx
jl 0x4eff36
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4effe1
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
lea eax, [esi + 0xec]
test eax, eax
je 0x4eff8e
mov eax, dword [eax + 4]
push 0xcc0020
push ecx
push edx
mov edx, dword [esp + 0x28]
push eax
push 0x20
push 0x20
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x4c]
sub eax, ecx
mov ecx, dword [esi + 0x44]
sub ecx, edx
mov edx, dword [esi + 0x58]
push edx
push ecx
push eax
mov eax, dword [esi + 0xf0]
push eax
call dword [sym.imp.USER32.dll_DrawIcon]
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call fcn.005087e3
lea ecx, [esp + 0x18]
call fcn.005086fa
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edi, dword [sym.imp.USER32.dll_UnionRect]
lea edx, [esp + 0x28]
add esi, 0xbc
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push edx
add eax, 0x20
add ecx, 0x20
push esi
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], eax
add eax, 0x20
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push eax
add ebp, 0x20
push esi
push esi
mov dword [esp + 0x3c], ebp
call edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call fcn.00508710
pop ebx
pop ebp
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x34
ret 8