Function at 0x49f990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x628deb
mov eax, dword fs:[0]
push eax
sub esp, 0xa24
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x9dc], ecx
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9e0], ebx
mov dword [ebp - 0x9e8], eax
mov dword [ebp - 0x9d8], esi
test esi, esi
je 0x4a024d
cmp dword [esi], 0
jne 0x4a024d
mov eax, dword [0x6f06a8]
test al, 1
jne 0x49fa2c
or eax, 1
mov dword [0x6f06a8], eax
mov ecx, 0x6f0684
mov dword [ebp - 4], 0
call fcn.0049e9e0
push 0x63f680
call fcn.0052ebec
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
mov ecx, 0x6f0684
call fcn.0049ec50
mov dword [esi], eax
test eax, eax
je 0x4a024d
push 0
lea ecx, [ebp - 0x9d0]
call fcn.0047dfd0
xor eax, eax
mov dword [ebp - 4], 1
push 0x206
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
mov dword [ebp - 0x9f0], 0
call fcn.0052f1e0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x624], ax
lea eax, [ebp - 0x622]
push eax
call fcn.0052f1e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.0052f1e0
mov ebx, dword [edi + 0x14]
add esp, 0x24
cmp ebx, 8
jb 0x49fac8
mov ecx, dword [edi]
jmp 0x49faca
mov ecx, edi
lea edx, [ebp - 0x424]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x49fad0
cmp ebx, 8
jb 0x49faea
mov eax, dword [edi]
jmp 0x49faec
mov eax, edi
lea ecx, [ebp - 0x624]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
call fcn.0049a1d0
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ecx]
push dword [ebp - 0x9e0]
call dword [eax + 4]
cmp dword [edi + 0x14], 8
jb 0x49fb1a
mov eax, dword [edi]
jmp 0x49fb1c
mov eax, edi
push 0x646134
push eax
call fcn.00531faa
mov ebx, eax
lea ecx, [ebp - 0x9d0]
add esp, 8
test ebx, ebx
je 0x4a0241
push ebx
call fcn.0047e240
push ebx
call fcn.0052fad2
mov eax, dword [ebp - 0x9cc]
add esp, 4
mov dword [ebp - 0x9e4], 0
cmp dword [eax + 0x4b0], 0
jbe 0x49fdc3
lea eax, [ebp - 0x9d4]
mov dword [ebp - 0x9f8], 0
push eax
push 1
push 0
mov dword [ebp - 0x9d4], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 0x9d4]
lea eax, [ebp - 0x9f8]
push eax
mov eax, dword [ebp - 0x9cc]
mov edx, dword [ecx]
push dword [eax + 0x4b0]
push dword [eax + 0x4ac]
push ecx
call dword [edx + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov ebx, eax
test ebx, ebx
je 0x49fbee
mov ecx, dword [ebp - 0x9d4]
lea eax, [ebp - 0x9ec]
push eax
push ecx
mov dword [ebx], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x9ec], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x9ec]
mov dword [ebx + 4], eax
jmp 0x49fbf0
xor ebx, ebx
mov ecx, dword [ebp - 0x9d4]
mov dword [ebp - 0x9e4], ebx
test ecx, ecx
je 0x49fc06
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ebx, dword [ebp - 0x9dc]
cmp dword [ebp - 0x9e4], 0
je 0x49fc5b
lea eax, [ebp - 0x9e4]
mov ecx, ebx
push eax
call fcn.0049f480
mov ebx, dword [ebp - 0x9e4]
lea eax, [ebp - 0x9f0]
push 0
push eax
push dword [ebx + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x49fc41
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 0x9e4]
test ecx, ecx
je 0x49fc5b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 0x9e4], 0
cmp dword [ebp - 0x9f0], 0
jne 0x49fc88
mov ecx, dword [ebp - 0x9dc]
lea eax, [ebp - 0x624]
push 0x10
push eax
lea eax, [ebp - 0x21c]
add ecx, 0xc
push eax
call fcn.004a1030
mov dword [ebp - 0x9f0], eax
mov ecx, dword [esi]
mov edx, dword [ebp - 0x9e8]
mov eax, dword [ecx]
push dword [edx]
call dword [eax + 0x28]
mov ecx, dword [esi]
push dword [ebp - 0x9f0]
push 1
mov eax, dword [ecx]
push edi
mov eax, dword [eax + 0xc]
call eax
push dword [ebp - 0x9f0]
mov bl, al
call dword [sym.imp.GDI32.dll_DeleteObject]
test bl, bl
je 0x4a0229
lea eax, [ebp - 0x634]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x9e0]
movdqu xmmword [ebp - 0x634], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x62c]
sub eax, dword [ebp - 0x634]
mov dword [ebp - 0x9e0], eax
mov eax, dword [ebp - 0x628]
sub eax, dword [ebp - 0x630]
push 0x110
mov dword [ebp - 0x9d4], eax
lea eax, [ebp - 0x7c4]
push 0
push eax
call fcn.0052f1e0
add esp, 0xc
mov dword [ebp - 0x7c8], 0x114
lea eax, [ebp - 0x7c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0xa04]
call dword [sym.imp.FreeImagePlus.dll_public:_void___thiscall_fipTag::constructor_void_]
mov ecx, dword [esi]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0xc8]
mov ebx, eax
test ebx, ebx
je 0x49feb9
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_enum_FREE_IMAGE_TYPE___thiscall_fipImage::getImageType_void_]
mov ecx, ebx
mov esi, eax
call dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getBitsPerPixel_void_const]
mov edi, eax
cmp esi, 1
je 0x49fda0
cmp esi, 2
je 0x49fd9b
cmp esi, 9
je 0x49fd9b
cmp esi, 0xa
je 0x49fd9b
cmp esi, 6
je 0x49fd9b
cmp esi, 0xb
je 0x49fd9b
cmp esi, 0xc
je 0x49fd9b
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipImage::convertTo24Bits_void_]
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_enum_FREE_IMAGE_TYPE___thiscall_fipImage::getImageType_void_]
mov esi, eax
cmp esi, 1
jne 0x49fe00
cmp edi, 1
je 0x49fe00
cmp edi, 8
je 0x49fe00
cmp edi, 0x18
je 0x49fe00
cmp edi, 0x20
je 0x49fe00
cmp edi, 8
jg 0x49fde4
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipImage::convertTo8Bits_void_]
jmp 0x49fe00
mov ebx, dword [ebp - 0x9dc]
lea eax, [ebp - 0x9e4]
push eax
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebx + 0xc]
call fcn.004a1570
jmp 0x49fc0c
cmp edi, 0x10
jle 0x49fdf8
cmp edi, 0x18
jg 0x49fdf8
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipImage::convertTo24Bits_void_]
jmp 0x49fe00
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipImage::convertTo32Bits_void_]
mov eax, dword [ebp - 0x9cc]
cmp byte [eax + 0x4b4], 0
je 0x49feb3
mov edx, dword [eax + 0x6c]
mov esi, dword [eax + 0x68]
mov edi, dword [eax + 0x64]
mov dword [ebp - 0x9e8], edx
cmp edx, 0xffffffff
je 0x49fe3e
mov ecx, dword [ebp - 0x9d8]
push edx
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0xf0]
mov edx, dword [ebp - 0x9e8]
test esi, esi
jle 0x49feb3
test edi, edi
jle 0x49feb3
cmp edx, 4
jle 0x49fe51
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [ebp - 0x9e0]
mov edx, dword [ebp - 0x9d4]
cmp esi, eax
jg 0x49fe7c
cmp edi, edx
jg 0x49fe7c
mov dword [ebp - 0x9d4], edi
mov edi, dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getHeight_void_const]
mov dword [ebp - 0x9dc], esi
jmp 0x49ff2e
cmp esi, edi
jle 0x49fe9d
mov dword [ebp - 0x9dc], eax
imul eax, edi
mov edi, dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getHeight_void_const]
cdq
idiv esi
mov dword [ebp - 0x9d4], eax
jmp 0x49ff2e
imul esi, edx
mov dword [ebp - 0x9d4], edx
mov eax, esi
cdq
idiv edi
mov edi, dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getHeight_void_const]
jmp 0x49ff28
mov esi, dword [ebp - 0x9d8]
movd xmm1, dword [ebp + 0xc]
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x647350]
mulsd xmm1, qword [0x647350]
comisd xmm1, xmmword [0x642000]
jbe 0x4a0205
mov ecx, ebx
call dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getWidth_void_const]
mov edi, dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getHeight_void_const]
mov ecx, ebx
mov esi, eax
call edi
mov ecx, eax
cmp esi, ecx
jle 0x49ff14
mov eax, dword [ebp - 0x9e0]
mov dword [ebp - 0x9dc], eax
imul eax, ecx
cdq
idiv esi
mov dword [ebp - 0x9d4], eax
jmp 0x49ff2e
mov edx, dword [ebp - 0x9d4]
imul esi, edx
mov dword [ebp - 0x9d4], edx
mov eax, esi
cdq
idiv ecx
mov dword [ebp - 0x9dc], eax
lea ecx, [ebp - 0x6b4]
mov dword [ebp - 0x9ec], 0
call fcn.0049f230
lea ecx, [ebp - 0x67c]
call fcn.0049f230
mov eax, dword [ebp - 0x9d8]
mov byte [ebp - 4], 5
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0xc8]
mov ebx, dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getWidth_void_const]
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x640], 0
call ebx
mov ecx, esi
mov dword [ebp - 0x63c], eax
call edi
push 0
mov dword [ebp - 0x638], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x9e0], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, esi
mov dword [ebp - 0x9d8], eax
call edi
mov ecx, esi
mov dword [ebp - 0x9e8], eax
call ebx
push dword [ebp - 0x9e8]
push eax
push dword [ebp - 0x9e0]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [ebp - 0x9d8]
mov dword [ebp - 0x9f4], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
mov dword [ebp - 0x9fc], eax
mov ecx, esi
push 0
lea eax, [ebp - 0x644]
push eax
push dword [ebp - 0x9d8]
call dword [sym.imp.FreeImagePlus.dll_public:_void___thiscall_fipWinImage::drawEx_struct_HDC_____struct_tagRECT___int__struct_tagRGBQUAD___struct_FIBITMAP__const]
mov ecx, esi
call edi
mov ecx, esi
mov dword [ebp - 0x9e8], eax
call ebx
mov ecx, esi
mov dword [ebp - 0x9f8], eax
call edi
mov ecx, esi
mov edi, eax
call ebx
push dword [ebp - 0x9e8]
mov ebx, dword [ebp - 0x9d8]
push dword [ebp - 0x9f8]
push 0
push 0
push edi
push eax
push 0
push 0
push ebx
call dword [sym.imp.ImageDraw.dll_public:_static_struct_HBITMAP______cdecl_CImageTransform::GetHBITMAP_struct_HDC_____int__int__int__int__int__int__int__int_]
add esp, 0x24
mov dword [ebp - 0x9d8], eax
push dword [ebp - 0x9fc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x9f4]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebx
call edi
mov ebx, dword [ebp - 0x9e0]
push ebx
call edi
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x6b4]
push eax
lea eax, [ebp - 0x9d8]
push eax
call fcn.0049f720
add esp, 8
lea eax, [ebp - 0x67c]
lea ecx, [ebp - 0xa30]
push eax
call fcn.0055a170
lea eax, [ebp - 0x6b4]
push eax
lea ecx, [ebp - 0xa1c]
call fcn.0055a140
push 4
sub esp, 0x18
xorps xmm0, xmm0
mov eax, esp
movups xmmword [esp + 8], xmm0
mov dword [eax], 5
mov dword [eax + 4], 5
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0xa1c]
push eax
call fcn.005d41f0
add esp, 0x24
lea eax, [ebp - 0x67c]
lea ecx, [ebp - 0xa1c]
push eax
call fcn.0055a170
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0xa30]
call fcn.0055a140
mov ecx, dword [ebp - 0x9dc]
xorps xmm0, xmm0
push 1
sub esp, 0x18
mov eax, esp
movups xmmword [esp + 8], xmm0
mov dword [eax], ecx
mov ecx, dword [ebp - 0x9d4]
mov dword [eax + 4], ecx
lea eax, [ebp - 0xa1c]
push eax
lea eax, [ebp - 0xa30]
push eax
call fcn.005e8010
add esp, 0x24
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x9ec]
push eax
call fcn.004a0270
mov eax, dword [esi]
add esp, 8
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 0x9ec]
mov ecx, esi
push edi
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipWinImage::copyFromBitmap_struct_HBITMAP____]
lea ecx, [ebp - 0x6b4]
call fcn.004a0ef0
lea ecx, [ebp - 0x67c]
call fcn.004a0ef0
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call esi
push dword [ebp - 0x9d8]
call esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x67c]
call fcn.0049f3c0
lea ecx, [ebp - 0x6b4]
mov byte [ebp - 4], 3
call fcn.0049f3c0
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xa04]
mov byte [ebp - 4], 1
call dword [sym.imp.FreeImagePlus.dll_public_virtual:_void___thiscall_fipTag::destructor_void_]
lea ecx, [ebp - 0x9d0]
mov dword [ebp - 4], 0xffffffff
call fcn.0047e050
mov al, 1
jmp 0x4a024f
mov ecx, dword [esi]
test ecx, ecx
je 0x4a0217
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
lea ecx, [ebp - 0xa04]
mov byte [ebp - 4], 1
call dword [sym.imp.FreeImagePlus.dll_public_virtual:_void___thiscall_fipTag::destructor_void_]
jmp 0x4a023b
mov ecx, dword [esi]
test ecx, ecx
je 0x4a023b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi], 0
lea ecx, [ebp - 0x9d0]
mov dword [ebp - 4], 0xffffffff
call fcn.0047e050
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0x14