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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50afb8
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 0x4ed2d8
mov eax, dword [esi + 0x44]
push ebx
push ebp
mov ebp, dword [esi + 0x40]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
call fcn.005031e0
mov eax, dword [esi + 0x50]
mov dword [esp + 0x40], edi
cmp eax, edi
je 0x4ed0a8
lea eax, [esi + 0xec]
cmp eax, edi
jne 0x4ed049
xor eax, eax
jmp 0x4ed04c
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.00503297
lea eax, [esi + 0x104]
cmp eax, edi
jne 0x4ed06b
xor eax, eax
jmp 0x4ed06e
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.005033d8
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 0x4ed0c8
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x6c]
sub ecx, edx
sub ecx, 2
jmp 0x4ed0ce
cmp ecx, edi
jge 0x4ed0ce
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 0x4ed0eb
mov eax, dword [esi + 0x78]
sub eax, ebx
sub eax, 2
jmp 0x4ed0f1
cmp eax, edi
jge 0x4ed0f1
xor eax, eax
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x40], ecx
cmp edx, edi
mov dword [esi + 0x44], eax
je 0x4ed1b8
mov edx, dword [esi + 0x60]
cmp edx, edi
je 0x4ed1b8
xor edi, edi
mov di, word [edx + 0x12]
add edi, 0xffffff80
cmp edi, 5
ja case.0x4ed11f.130
jmp dword [edi*4 + 0x4ed2ec]
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.0x4ed11f.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.0x4ed11f.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.0x4ed11f.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.0x4ed11f.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.0x4ed11f.130
xor ebx, ebx
cmp word [esi + 0x14], di
jbe case.0x4ed11f.130
mov ebp, dword [sym.imp.USER32.dll_PtInRect]
mov edx, dword [esi + 0x3c]
cmp word [edi + edx + 0x12], 0x81
lea eax, [edi + edx]
jne 0x4ed1f2
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
add eax, 0x28
push ecx
push edx
push eax
call ebp
test eax, eax
je 0x4ed1f2
mov eax, dword [esi + 0x3c]
mov ecx, dword [edi + eax]
test ch, 8
je 0x4ed200
xor ecx, ecx
inc ebx
mov cx, word [esi + 0x14]
add edi, 0x5c
cmp ebx, ecx
jl 0x4ed1c6
mov ebp, dword [esp + 0x10]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4ed271
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
lea eax, [esi + 0xec]
test eax, eax
je 0x4ed21e
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 + 0x4c]
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
sub eax, ecx
mov ecx, dword [esi + 0x40]
sub ecx, edx
mov edx, dword [esi + 0x58]
push edx
push eax
mov eax, dword [esi + 0xf0]
push ecx
push eax
call dword [sym.imp.USER32.dll_DrawIcon]
mov ecx, dword [esp + 0x1c]
push 0
push ecx
call fcn.005033d8
lea ecx, [esp + 0x18]
call fcn.005032ff
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.00503315
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 8