Function at 0x4d3e60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9110
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x140], eax
call fcn.0048ef20
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00490500
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00490430
test eax, eax
je 0x4d3ee4
push eax
call fcn.004affaa
add esp, 4
mov dword [ebp - 0x144], eax
mov esi, eax
jmp 0x4d3eec
xor esi, esi
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x138]
cmp dword [eax + 4], 0
jne 0x4d3f36
push 0x28
call fcn.00499a63
add esp, 4
mov dword [ebp - 0x148], eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movups xmmword [eax + 0x10], xmm0
movq qword [eax + 0x20], xmm0
call fcn.004d50e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x138]
mov dword [ecx + 4], eax
push dword [ebp - 0x140]
push ecx
push esi
push dword [ebp - 0x14]
call fcn.004d4ec0
mov dword [ebp - 0x138], eax
test eax, eax
je 0x4d3faf
push 0x40
call fcn.00499a63
mov esi, eax
add esp, 4
mov dword [ebp - 0x148], esi
mov byte [ebp - 4], 4
mov ecx, esi
push 0
push 0
push 0
push 1
call dword [sym.imp.FreeImagePlus.dll_public:_void___thiscall_fipWinImage::constructor_enum_FREE_IMAGE_TYPE__unsigned_int__unsigned_int__unsigned_int_]
mov dword [esi], 0x4ffaec
mov byte [ebp - 4], 2
mov ecx, esi
push dword [ebp - 0x138]
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipWinImage::copyFromBitmap_struct_HBITMAP____]
push dword [ebp - 0x138]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 4]
call eax
test eax, eax
jne 0x4d4006
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 0x139], 0
mov byte [ebp - 4], 1
push dword [ebp - 0x144]
call fcn.004a51e5
mov byte [ebp - 4], 0
push dword [ebp - 0x14]
call fcn.004a51e5
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.004a51e5
mov al, byte [ebp - 0x139]
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0
push eax
push dword [ebp - 0x18]
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
test eax, eax
jne 0x4d40a8
mov ecx, dword [ebp - 0x134]
lea edx, [ebp - 0x138]
mov dword [ebp - 0x138], 0xffffffff
call fcn.004d3650
cmp dword [ebp - 0x138], 0xffffffff
je 0x4d409c
push 0x110
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.004a35f0
add esp, 0xc
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x12c]
cmp eax, 6
jb 0x4d408f
jne 0x4d409c
cmp dword [ebp - 0x128], 2
jae 0x4d409c
mov edx, dword [ebp - 0x138]
mov ecx, esi
call fcn.004d37c0
push dword [ebp - 0x134]
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
cmp dword [edi], 0
je 0x4d40b3
cmp dword [edi + 4], 0
jne 0x4d40c0
mov dword [edi], 0x7fffffff
mov dword [edi + 4], 0x7fffffff
mov ecx, esi
call dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getWidth_void_const]
mov ecx, esi
mov dword [ebp - 0x138], eax
call dword [sym.imp.FreeImagePlus.dll_public:_unsigned_int___thiscall_fipImage::getHeight_void_const]
mov edx, dword [ebp - 0x138]
mov ecx, eax
mov eax, dword [ebp - 0x140]
cmp edx, dword [eax]
jge 0x4d40f3
cmp ecx, dword [eax + 4]
jl 0x4d3fa7
cmp edx, dword [eax]
jg 0x4d40fa
cmp ecx, dword [eax + 4]
jle 0x4d416f
movd xmm2, dword [eax]
movd xmm1, dword [eax + 4]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
push 1
cvtdq2pd xmm2, xmm2
cvtdq2pd xmm1, xmm1
divsd xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
minsd xmm2, xmm1
mulsd xmm0, xmm2
movsd qword [ebp - 0x14c], xmm2
addsd xmm0, qword [0x5081e0]
call fcn.004bd901
push eax
mov eax, dword [ebp - 0x138]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [ebp - 0x14c]
addsd xmm0, qword [0x5081e0]
call fcn.004bd901
push eax
mov ecx, esi
call dword [sym.imp.FreeImagePlus.dll_public:_int___thiscall_fipImage::rescale_unsigned_int__unsigned_int__enum_FREE_IMAGE_FILTER_]
mov dword [edi + 0x10], esi
mov byte [ebp - 0x139], 1
jmp 0x4d3fb6