Function at 0x1000c657
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x10068060]
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 0x1000c6ae
xor al, al
jmp 0x1000c8dd
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.100384f0
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.1000bc6d
cmp word [ebp - 0x18e], 0x20
pop ecx
jne 0x1000c858
cmp dword [ebp - 0x134], 5
je 0x1000c858
mov edi, dword [ebp - 0x150]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1000c757
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 0x1000c759
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 0x1000c77b
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 0x1000c79d
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 0x1000c7d1
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 0x1000c7f6
mov dword [esi + 8], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, ebx
je 0x1000c84c
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 0x1000c84e
xor esi, esi
mov edi, esi
mov esi, dword [ebp - 0x14c]
jmp 0x1000c866
push dword [ebp - 0x140]
call fcn.1000bc6d
pop ecx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.1000c5cb
test al, al
je 0x1000c8a5
cmp dword [esi + 0x18], 8
jb 0x1000c87e
mov esi, dword [esi + 4]
jmp 0x1000c881
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 0x1000c898
mov dword [edi + 8], eax
jmp 0x1000c89a
xor eax, eax
cmp eax, ebx
jne 0x1000c8a5
mov byte [ebp - 0x139], 1
cmp edi, ebx
je 0x1000c8b1
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov ecx, dword [ebp - 0x148]
cmp ecx, ebx
je 0x1000c8c1
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.10035ee9
leave
ret