Function at 0x1000ee50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x10078060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x160], ebx
lea edi, [ebp - 0x15c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x160]
push eax
mov esi, edx
push ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x14c], esi
mov byte [ebp - 0x139], bl
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
jne 0x1000eea7
xor al, al
jmp 0x1000f0d6
lea eax, [ebp - 0x1a0]
push eax
push 0x18
push dword [ebp - 0x150]
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x118
lea eax, [ebp - 0x134]
push ebx
push eax
mov dword [ebp - 0x148], ebx
call fcn.10043280
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
mov dword [ebp - 0x138], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push dword [ebp - 0x140]
call fcn.1000e466
cmp word [ebp - 0x18e], 0x20
pop ecx
jne 0x1000f051
cmp dword [ebp - 0x134], 5
je 0x1000f051
mov edi, dword [ebp - 0x150]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1000ef50
lea eax, [ebp - 0x144]
push eax
push ebx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x144], ebx
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x144]
mov dword [esi + 4], eax
jmp 0x1000ef52
xor esi, esi
lea eax, [ebp - 0x144]
push eax
push dword [esi + 4]
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x1000ef74
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x144]
lea eax, [ebp - 0x140]
push eax
push dword [esi + 4]
mov dword [ebp - 0x140], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x1000ef96
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x140]
push eax
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x164], edi
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImagePixelFormat
cmp eax, ebx
je 0x1000efca
mov dword [esi + 8], eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x140]
lea eax, [ebp - 0x170]
push 1
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipBitmapLockBits
cmp eax, ebx
je 0x1000efef
mov dword [esi + 8], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1000f045
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x180]
mov edx, dword [ebp - 0x184]
mov edi, dword [ebp - 0x188]
mov dword [ebp - 0x140], ebx
lea ebx, [ebp - 0x140]
push ebx
push eax
push 0xe200b
push ecx
push edx
push edi
mov dword [esi], vtable.Gdiplus::Bitmap.0
call sub.gdiplus.dll_GdipCreateBitmapFromScan0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x140]
mov dword [esi + 4], eax
xor ebx, ebx
jmp 0x1000f047
xor esi, esi
mov edi, esi
mov esi, dword [ebp - 0x14c]
jmp 0x1000f05f
push dword [ebp - 0x140]
call fcn.1000e466
pop ecx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000edc4
test al, al
je 0x1000f09e
cmp dword [esi + 0x18], 8
jb 0x1000f077
mov esi, dword [esi + 4]
jmp 0x1000f07a
add esi, 4
push ebx
lea eax, [ebp - 0x14]
push eax
push esi
push dword [edi + 4]
call sub.gdiplus.dll_GdipSaveImageToFile
cmp eax, ebx
je 0x1000f091
mov dword [edi + 8], eax
jmp 0x1000f093
xor eax, eax
cmp eax, ebx
jne 0x1000f09e
mov byte [ebp - 0x139], 1
cmp edi, ebx
je 0x1000f0aa
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x148]
cmp ecx, ebx
je 0x1000f0ba
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x150]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0x154]
call esi
mov al, byte [ebp - 0x139]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10040b84
leave
ret